Commit db631de5 authored by Tom Lane's avatar Tom Lane

Add explicit ORDER BYs in a couple of cases --- seems to be necessary

to get platform-independent results.
parent e8f1340f
...@@ -1591,7 +1591,8 @@ SELECT '' AS "xxx", * ...@@ -1591,7 +1591,8 @@ SELECT '' AS "xxx", *
(7 rows) (7 rows)
SELECT '' AS "xxx", * 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 xxx | a | b | c | d
-----+---+---+-------+---- -----+---+---+-------+----
| 0 | | zero | | 0 | | zero |
...@@ -1604,7 +1605,8 @@ SELECT '' AS "xxx", * ...@@ -1604,7 +1605,8 @@ SELECT '' AS "xxx", *
(7 rows) (7 rows)
SELECT '' AS "xxx", * 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 xxx | b | a | c | a
-----+---+---+-------+--- -----+---+---+-------+---
| 0 | 5 | five | | 0 | 5 | five |
......
...@@ -113,10 +113,12 @@ SELECT '' AS "xxx", * ...@@ -113,10 +113,12 @@ SELECT '' AS "xxx", *
FROM J1_TBL JOIN J2_TBL USING (i); FROM J1_TBL JOIN J2_TBL USING (i);
SELECT '' AS "xxx", * 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", * 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;
-- --
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment