Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit db631de

Browse files
committed
Add explicit ORDER BYs in a couple of cases --- seems to be necessary
to get platform-independent results.
1 parent e8f1340 commit db631de

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_TBL JOIN 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)