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
Context parsing error with derived tables and CASE functions [CORE4262] #4586
Comments
Modified by: @dyemanovreporter: Dmitry Yemanov [ dimitr ] => Pavel Zotov [ tabloid ] |
Modified by: @dyemanovdescription: Purely artificial test case that's not expected to demonstrate anything useful, just to either compile or not: SELECT Statement failed, SQLSTATE = HY000 In FB 2.5 there's not such a context parsing problem. => Purely artificial test case that's not expected to demonstrate anything useful, just to either compile or not: SELECT Statement failed, SQLSTATE = HY000 In FB 2.5 there's not such a context parsing problem. |
Modified by: @dyemanovdescription: Purely artificial test case that's not expected to demonstrate anything useful, just to either compile or not: SELECT Statement failed, SQLSTATE = HY000 In FB 2.5 there's not such a context parsing problem. => Purely artificial test case that's not expected to demonstrate anything useful, just to either compile or not: SELECT or SELECT col AS col1, col AS col2 Statement failed, SQLSTATE = HY000 In FB 2.5 there's not such a context parsing problem. |
Modified by: @dyemanovstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 3.0 Alpha 2 [ 10560 ] assignee: Dmitry Yemanov [ dimitr ] |
Submitted by: @pavel-zotov
Purely artificial test case that's not expected to demonstrate anything useful, just to either compile or not:
SELECT
CASE WHEN col = 1 THEN 'Y'
WHEN col = 0 THEN 'N'
END AS text
FROM (
SELECT CASE WHEN EXISTS (SELECT 1 FROM rdb$database ) THEN 1 ELSE 0 END AS col
FROM rdb$relations
)
or
SELECT col AS col1, col AS col2
FROM (
SELECT CASE WHEN EXISTS (SELECT 1 FROM rdb$database ) THEN 1 ELSE 0 END AS col
FROM rdb$relations
)
Statement failed, SQLSTATE = HY000
invalid request BLR at offset <NNN>
-context already in use (BLR error)
In FB 2.5 there's not such a context parsing problem.
Commits: 8dbe038 FirebirdSQL/fbt-repository@51304a7
The text was updated successfully, but these errors were encountered: