Skip to content

Commit bea18b1

Browse files
committed
Strengthen tests for 5ef34a8
The test query in 5ef34a8 is running over the empty emp1 table giving the same (empty) return both with and without the fix. Add one row to that table to make not just the test query plan, but also the test query result different. Reported-by: Richard Guo Bug: #18261 Discussion: https://postgr.es/m/CAMbWs49igjcszLgicb4D1N21_5iNDoxheJ7KFmAcs_z%3DLx6jhg%40mail.gmail.com
1 parent 9034a2d commit bea18b1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/test/regress/expected/join.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6881,6 +6881,7 @@ WHERE t1.id = emp1.id RETURNING emp1.id, emp1.code;
68816881
(3 rows)
68826882

68836883
-- Check that SJE does not mistakenly omit qual clauses (bug #18187)
6884+
insert into emp1 values (1, 1);
68846885
explain (costs off)
68856886
select 1 from emp1 full join
68866887
(select * from emp1 t1 join

src/test/regress/sql/join.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2623,6 +2623,7 @@ UPDATE emp1 SET code = t1.code + 1 FROM t1
26232623
WHERE t1.id = emp1.id RETURNING emp1.id, emp1.code;
26242624

26252625
-- Check that SJE does not mistakenly omit qual clauses (bug #18187)
2626+
insert into emp1 values (1, 1);
26262627
explain (costs off)
26272628
select 1 from emp1 full join
26282629
(select * from emp1 t1 join

0 commit comments

Comments
 (0)