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

Parsing of recursive query returns error "Column does not belong to referenced table" for source that HAS such column [CORE4354] #4676

Closed
firebird-issue-importer opened this issue Feb 25, 2014 · 6 comments

Comments

@firebird-issue-importer

Submitted by: @pavel-zotov

Is related to QA593

LI-T6.3.0.30889 Firebird 3.0 Alpha 2

with recursive
b as (
select 0 rc
from rdb$database qa

union all

select b\.rc\+1
from b
    join rdb$database q1 on q1\.rdb$relation\_id\*0=b\.rc\*0
    join rdb$database q2 on q2\.rdb$relation\_id\*0=b\.rc\*0
where b\.rc=0

)
select * from b

Result: "Column does not belong to referenced table." (seems that it is 'b.rc' column that is source of trouble).

Same query in LI-V6.3.3.26744 Firebird 2.5 runs OK and return two rows (0 and 1).
The problem disappears if second join: "join rdb$database q2 on q2.rdb$relation_id*0=b.rc*0" - is commented out.

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Feb 26, 2014

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Mar 6, 2014

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Beta 1 [ 10332 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Mar 29, 2014

Modified by: @pcisar

Link: This issue is related to QA593 [ QA593 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented May 30, 2015

Modified by: @pavel-zotov

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

QA Status: Done successfully

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Sep 23, 2015

Commented by: @pcisar

Test created.

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Sep 23, 2015

Modified by: @pcisar

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

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