Skip to content
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

wrong result for left join [CORE2537] #2947

Closed
firebird-automations opened this issue Jul 3, 2009 · 6 comments
Closed

wrong result for left join [CORE2537] #2947

firebird-automations opened this issue Jul 3, 2009 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: robur.6 (robur.6)

Duplicates CORE1246
Block progress on CORE3354

Given:
- a left join
- the right table part is a subquery containing an expression
- that expresion does not reference any column (e.g. a constant or current_time)

The result contains the expression value instead of null if there is no matching row in the right table.

CREATE TABLE TEST (
FIELD INTEGER
);

insert into test values(1);
insert into test values(2);

select * from
test t1
left join
(
select field, 'x' expression from test
where field=1
) t2
on t1.field=t2.field
;

Result:

   FIELD        FIELD EXPRESSION

============ ============ ==========
1 1 x
2 <null> x

Expected result:

   FIELD        FIELD EXPRESSION

============ ============ ==========
1 1 x
2 <null> <null>

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Duplicates CORE1246.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Duplicate [ 3 ]

Fix Version: 2.5 Beta 1 [ 10251 ]

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Link: This issue duplicates CORE1246 [ CORE1246 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Link: This issue block progress on CORE3354 [ CORE3354 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants