Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
13d7a689
Commit
13d7a689
authored
Oct 28, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ORDER BY to join regression test.
parent
c2159022
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
src/test/regress/expected/join.out
src/test/regress/expected/join.out
+10
-6
src/test/regress/sql/join.sql
src/test/regress/sql/join.sql
+8
-4
No files found.
src/test/regress/expected/join.out
View file @
13d7a689
...
...
@@ -1717,7 +1717,8 @@ SELECT '' AS "xxx", *
-- Note that OUTER is a noise word
--
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
-----+---+---+-------+----
| 0 | | zero |
...
...
@@ -1736,7 +1737,8 @@ SELECT '' AS "xxx", *
(13 rows)
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
-----+---+---+-------+----
| 0 | | zero |
...
...
@@ -1785,7 +1787,8 @@ SELECT '' AS "xxx", *
(9 rows)
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
-----+---+---+-------+----
| 0 | | zero |
...
...
@@ -1799,14 +1802,15 @@ SELECT '' AS "xxx", *
| 6 | 6 | six |
| 7 | 7 | seven |
| 8 | 8 | eight |
| | | | 0
| | | null |
| | 0 | zero |
| | | |
| | | | 0
(15 rows)
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
-----+---+---+-------+----
| 0 | | zero |
...
...
@@ -1820,10 +1824,10 @@ SELECT '' AS "xxx", *
| 6 | 6 | six |
| 7 | 7 | seven |
| 8 | 8 | eight |
| | | | 0
| | | null |
| | 0 | zero |
| | | |
| | | | 0
(15 rows)
SELECT '' AS "xxx", *
...
...
src/test/regress/sql/join.sql
View file @
13d7a689
...
...
@@ -166,10 +166,12 @@ 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"
,
*
FROM
J1_TBL
LEFT
JOIN
J2_TBL
USING
(
i
);
FROM
J1_TBL
LEFT
JOIN
J2_TBL
USING
(
i
)
ORDER
BY
i
;
SELECT
''
AS
"xxx"
,
*
FROM
J1_TBL
RIGHT
OUTER
JOIN
J2_TBL
USING
(
i
);
...
...
@@ -178,10 +180,12 @@ SELECT '' AS "xxx", *
FROM
J1_TBL
RIGHT
JOIN
J2_TBL
USING
(
i
);
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"
,
*
FROM
J1_TBL
FULL
JOIN
J2_TBL
USING
(
i
);
FROM
J1_TBL
FULL
JOIN
J2_TBL
USING
(
i
)
ORDER
BY
i
;
SELECT
''
AS
"xxx"
,
*
FROM
J1_TBL
LEFT
JOIN
J2_TBL
USING
(
i
)
WHERE
(
k
=
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment