Commit 13d7a689 authored by Bruce Momjian's avatar Bruce Momjian

Add ORDER BY to join regression test.

parent c2159022
...@@ -1717,7 +1717,8 @@ SELECT '' AS "xxx", * ...@@ -1717,7 +1717,8 @@ SELECT '' AS "xxx", *
-- Note that OUTER is a noise word -- Note that OUTER is a noise word
-- --
SELECT '' AS "xxx", * SELECT '' AS "xxx", *
FROM J1_TBL LEFT OUTER JOIN J2_TBL USING (i); FROM J1_TBL LEFT OUTER JOIN J2_TBL USING (i)
ORDER BY i;
xxx | i | j | t | k xxx | i | j | t | k
-----+---+---+-------+---- -----+---+---+-------+----
| 0 | | zero | | 0 | | zero |
...@@ -1736,7 +1737,8 @@ SELECT '' AS "xxx", * ...@@ -1736,7 +1737,8 @@ SELECT '' AS "xxx", *
(13 rows) (13 rows)
SELECT '' AS "xxx", * SELECT '' AS "xxx", *
FROM J1_TBL LEFT JOIN J2_TBL USING (i); FROM J1_TBL LEFT JOIN J2_TBL USING (i)
ORDER BY i;
xxx | i | j | t | k xxx | i | j | t | k
-----+---+---+-------+---- -----+---+---+-------+----
| 0 | | zero | | 0 | | zero |
...@@ -1785,7 +1787,8 @@ SELECT '' AS "xxx", * ...@@ -1785,7 +1787,8 @@ SELECT '' AS "xxx", *
(9 rows) (9 rows)
SELECT '' AS "xxx", * SELECT '' AS "xxx", *
FROM J1_TBL FULL OUTER JOIN J2_TBL USING (i); FROM J1_TBL FULL OUTER JOIN J2_TBL USING (i)
ORDER BY i;
xxx | i | j | t | k xxx | i | j | t | k
-----+---+---+-------+---- -----+---+---+-------+----
| 0 | | zero | | 0 | | zero |
...@@ -1799,14 +1802,15 @@ SELECT '' AS "xxx", * ...@@ -1799,14 +1802,15 @@ SELECT '' AS "xxx", *
| 6 | 6 | six | | 6 | 6 | six |
| 7 | 7 | seven | | 7 | 7 | seven |
| 8 | 8 | eight | | 8 | 8 | eight |
| | | | 0
| | | null | | | | null |
| | 0 | zero | | | 0 | zero |
| | | | | | | |
| | | | 0
(15 rows) (15 rows)
SELECT '' AS "xxx", * SELECT '' AS "xxx", *
FROM J1_TBL FULL JOIN J2_TBL USING (i); FROM J1_TBL FULL JOIN J2_TBL USING (i)
ORDER BY i;
xxx | i | j | t | k xxx | i | j | t | k
-----+---+---+-------+---- -----+---+---+-------+----
| 0 | | zero | | 0 | | zero |
...@@ -1820,10 +1824,10 @@ SELECT '' AS "xxx", * ...@@ -1820,10 +1824,10 @@ SELECT '' AS "xxx", *
| 6 | 6 | six | | 6 | 6 | six |
| 7 | 7 | seven | | 7 | 7 | seven |
| 8 | 8 | eight | | 8 | 8 | eight |
| | | | 0
| | | null | | | | null |
| | 0 | zero | | | 0 | zero |
| | | | | | | |
| | | | 0
(15 rows) (15 rows)
SELECT '' AS "xxx", * SELECT '' AS "xxx", *
......
...@@ -166,10 +166,12 @@ SELECT '' AS "xxx", * ...@@ -166,10 +166,12 @@ SELECT '' AS "xxx", *
-- --
SELECT '' AS "xxx", * SELECT '' AS "xxx", *
FROM J1_TBL LEFT OUTER JOIN J2_TBL USING (i); FROM J1_TBL LEFT OUTER JOIN J2_TBL USING (i)
ORDER BY i;
SELECT '' AS "xxx", * SELECT '' AS "xxx", *
FROM J1_TBL LEFT JOIN J2_TBL USING (i); FROM J1_TBL LEFT JOIN J2_TBL USING (i)
ORDER BY i;
SELECT '' AS "xxx", * SELECT '' AS "xxx", *
FROM J1_TBL RIGHT OUTER JOIN J2_TBL USING (i); FROM J1_TBL RIGHT OUTER JOIN J2_TBL USING (i);
...@@ -178,10 +180,12 @@ SELECT '' AS "xxx", * ...@@ -178,10 +180,12 @@ SELECT '' AS "xxx", *
FROM J1_TBL RIGHT JOIN J2_TBL USING (i); FROM J1_TBL RIGHT JOIN J2_TBL USING (i);
SELECT '' AS "xxx", * SELECT '' AS "xxx", *
FROM J1_TBL FULL OUTER JOIN J2_TBL USING (i); FROM J1_TBL FULL OUTER JOIN J2_TBL USING (i)
ORDER BY i;
SELECT '' AS "xxx", * SELECT '' AS "xxx", *
FROM J1_TBL FULL JOIN J2_TBL USING (i); FROM J1_TBL FULL JOIN J2_TBL USING (i)
ORDER BY i;
SELECT '' AS "xxx", * SELECT '' AS "xxx", *
FROM J1_TBL LEFT JOIN J2_TBL USING (i) WHERE (k = 1); FROM J1_TBL LEFT JOIN J2_TBL USING (i) WHERE (k = 1);
......
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