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
50125511
Commit
50125511
authored
Aug 13, 2009
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a simple test case covering a join against an inheritance tree,
since we're evidently not testing that at all right now :-(
parent
f959390c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
src/test/regress/expected/join.out
src/test/regress/expected/join.out
+13
-0
src/test/regress/sql/join.sql
src/test/regress/sql/join.sql
+8
-0
No files found.
src/test/regress/expected/join.out
View file @
50125511
...
...
@@ -2209,6 +2209,19 @@ SELECT * FROM t3;
---+---
(0 rows)
-- Test join against inheritance tree
create temp table t2a () inherits (t2);
insert into t2a values (200, 2001);
select * from t1 left join t2 on (t1.a = t2.a);
a | b | a | b
-----+------+-----+------
5 | 10 | |
15 | 20 | |
100 | 100 | |
200 | 1000 | 200 | 2000
200 | 1000 | 200 | 2001
(5 rows)
--
-- regression test for 8.1 merge right join bug
--
...
...
src/test/regress/sql/join.sql
View file @
50125511
...
...
@@ -389,6 +389,14 @@ SELECT * FROM t3;
DELETE
FROM
t3
USING
t3
t3_other
WHERE
t3
.
x
=
t3_other
.
x
AND
t3
.
y
=
t3_other
.
y
;
SELECT
*
FROM
t3
;
-- Test join against inheritance tree
create
temp
table
t2a
()
inherits
(
t2
);
insert
into
t2a
values
(
200
,
2001
);
select
*
from
t1
left
join
t2
on
(
t1
.
a
=
t2
.
a
);
--
-- regression test for 8.1 merge right join bug
--
...
...
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