Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
13d7a689
Commit
13d7a689
authored
22 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Add ORDER BY to join regression test.
parent
c2159022
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/regress/expected/join.out
+10
-6
10 additions, 6 deletions
src/test/regress/expected/join.out
src/test/regress/sql/join.sql
+8
-4
8 additions, 4 deletions
src/test/regress/sql/join.sql
with
18 additions
and
10 deletions
src/test/regress/expected/join.out
+
10
−
6
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", *
...
...
This diff is collapsed.
Click to expand it.
src/test/regress/sql/join.sql
+
8
−
4
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment