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
db631de5
Commit
db631de5
authored
Nov 06, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add explicit ORDER BYs in a couple of cases --- seems to be necessary
to get platform-independent results.
parent
e8f1340f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/test/regress/expected/join.out
src/test/regress/expected/join.out
+4
-2
src/test/regress/sql/join.sql
src/test/regress/sql/join.sql
+4
-2
No files found.
src/test/regress/expected/join.out
View file @
db631de5
...
...
@@ -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 |
...
...
src/test/regress/sql/join.sql
View file @
db631de5
...
...
@@ -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
;
--
...
...
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