Add explicit ORDER BYs in a couple of cases --- seems to be necessary
authorTom Lane
Mon, 6 Nov 2000 18:11:46 +0000 (18:11 +0000)
committerTom Lane
Mon, 6 Nov 2000 18:11:46 +0000 (18:11 +0000)
to get platform-independent results.

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

index 1849297f757df9f5d8622f751661daa18be62171..53a7ef4930261bf83016ce981f0b11a1ecc0dc93 100644 (file)
@@ -1591,7 +1591,8 @@ SELECT '' AS "xxx", *
 (7 rows)
 
 SELECT '' AS "xxx", *
-  FROM J1_TBL t1 (a, b, c) JOIN J2_TBL t2 (a, d) USING (a);
+  FROM J1_TBL t1 (a, b, c) JOIN J2_TBL t2 (a, d) USING (a)
+  ORDER BY a, d;
  xxx | a | b |   c   | d  
 -----+---+---+-------+----
      | 0 |   | zero  |   
@@ -1604,7 +1605,8 @@ SELECT '' AS "xxx", *
 (7 rows)
 
 SELECT '' AS "xxx", *
-  FROM J1_TBL t1 (a, b, c) JOIN J2_TBL t2 (a, b) USING (b);
+  FROM J1_TBL t1 (a, b, c) JOIN J2_TBL t2 (a, b) USING (b)
+  ORDER BY b, t1.a;
  xxx | b | a |   c   | a 
 -----+---+---+-------+---
      | 0 | 5 | five  |  
index 3126b58ea13ba50de6c2198110ddaceb9529aa9a..ae63a61c01fbb8741ea131e6bd49c18c754cdc97 100644 (file)
@@ -113,10 +113,12 @@ SELECT '' AS "xxx", *
   FROM J1_TBL JOIN J2_TBL USING (i);
 
 SELECT '' AS "xxx", *
-  FROM J1_TBL t1 (a, b, c) JOIN J2_TBL t2 (a, d) USING (a);
+  FROM J1_TBL t1 (a, b, c) JOIN J2_TBL t2 (a, d) USING (a)
+  ORDER BY a, d;
 
 SELECT '' AS "xxx", *
-  FROM J1_TBL t1 (a, b, c) JOIN J2_TBL t2 (a, b) USING (b);
+  FROM J1_TBL t1 (a, b, c) JOIN J2_TBL t2 (a, b) USING (b)
+  ORDER BY b, t1.a;
 
 
 --