Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdb631de

Browse files
committed
Add explicit ORDER BYs in a couple of cases --- seems to be necessary
to get platform-independent results.
1 parente8f1340 commitdb631de

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

‎src/test/regress/expected/join.out

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,8 @@ SELECT '' AS "xxx", *
15911591
(7 rows)
15921592

15931593
SELECT '' AS "xxx", *
1594-
FROM J1_TBL t1 (a, b, c) JOIN J2_TBL t2 (a, d) USING (a);
1594+
FROM J1_TBL t1 (a, b, c) JOIN J2_TBL t2 (a, d) USING (a)
1595+
ORDER BY a, d;
15951596
xxx | a | b | c | d
15961597
-----+---+---+-------+----
15971598
| 0 | | zero |
@@ -1604,7 +1605,8 @@ SELECT '' AS "xxx", *
16041605
(7 rows)
16051606

16061607
SELECT '' AS "xxx", *
1607-
FROM J1_TBL t1 (a, b, c) JOIN J2_TBL t2 (a, b) USING (b);
1608+
FROM J1_TBL t1 (a, b, c) JOIN J2_TBL t2 (a, b) USING (b)
1609+
ORDER BY b, t1.a;
16081610
xxx | b | a | c | a
16091611
-----+---+---+-------+---
16101612
| 0 | 5 | five |

‎src/test/regress/sql/join.sql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ SELECT '' AS "xxx", *
113113
FROM J1_TBLJOIN J2_TBL USING (i);
114114

115115
SELECT''AS"xxx",*
116-
FROM J1_TBL t1 (a, b, c)JOIN J2_TBL t2 (a, d) USING (a);
116+
FROM J1_TBL t1 (a, b, c)JOIN J2_TBL t2 (a, d) USING (a)
117+
ORDER BY a, d;
117118

118119
SELECT''AS"xxx",*
119-
FROM J1_TBL t1 (a, b, c)JOIN J2_TBL t2 (a, b) USING (b);
120+
FROM J1_TBL t1 (a, b, c)JOIN J2_TBL t2 (a, b) USING (b)
121+
ORDER BY b,t1.a;
120122

121123

122124
--

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp