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

Incorrect result with VIEW and COALESCE [CORE4959] #5250

Open
firebird-automations opened this issue Oct 12, 2015 · 0 comments
Open

Incorrect result with VIEW and COALESCE [CORE4959] #5250

firebird-automations opened this issue Oct 12, 2015 · 0 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Shiliaev Ruslan (shiliaevruslan)

Test case:

CREATE VIEW V(F1, F2) AS
SELECT RDB$SECURITY_CLASS, COALESCE(RDB$SECURITY_CLASS , 'B') FROM RDB$DATABASE WHERE 1=0;

SELECT 1, V.F1, V.F2
FROM RDB$DATABASE LEFT JOIN V ON 1=0;

CONSTANT 1
F1 <null>
F2 B --?????

@dyemanov dyemanov changed the title Optimization problem with VIEW and COALESCE [CORE4959] Incorrect result with VIEW and COALESCE [CORE4959] Jan 29, 2022
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

1 participant