-
-
Notifications
You must be signed in to change notification settings - Fork 232
Incorrect LEFT JOIN result using table and derived constant subquery [CORE3090] #3469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Modified by: @asfernandesassignee: Adriano dos Santos Fernandes [ asfernandes ] |
Commented by: Thomas Beckmann (thbeckmann) This might be due to the same reason: "select returns 'well' - which is fine with me. But "select returns nothing - which I am pretty sure, is a bug... |
Commented by: @asfernandes Please test the next 2.5 snapshot build. |
Modified by: @asfernandesstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 2.5.0 [ 10221 ] Fix Version: 3.0 Alpha 1 [ 10331 ] |
Modified by: @pmakowskistatus: Resolved [ 5 ] => Closed [ 6 ] |
Submitted by: Smirnoff Serg (wildsery)
Relate to CORE3176
Relate to CORE3173
Is related to QA443
Votes: 2
Test case:
recreate table test_err (id int);
insert into test_err (ID) values (1);
insert into test_err (ID) values (2);
select *
from test_err t
left join (select 1 id from rdb$database) a on http://a.id = http://t.id;
Result must be
ID ID
============ ============
1 1
2 <null>
But, result is
ID ID
============ ============
1 <null>
2 <null>
However, the second LEFT JOIN works fine
select *
from test_err t
left join (select 1 id from rdb$database) a on http://a.id = http://t.id
left join (select 2 id from rdb$database) b on http://b.id = http://t.id;
============ ============ ============
1 <null> <null>
2 <null> 2
Commits: 70ad7ef a539537 7f3dc62 ea94b62
The text was updated successfully, but these errors were encountered: