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 error recursive query with two recursive parts [CORE2943] #3325

Closed
firebird-automations opened this issue Mar 25, 2010 · 8 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Alex Bekhtin (afgm)

Is related to QA277

-- correct
with recursive
tree (NAME) as (
select r.rdb$relation_name from rdb$relations r
union all
select r2.rdb$relation_name || http://tree.NAME from rdb$relations r2, tree
where 1 = 0
)
select * from tree

-- incrorrect
with recursive
tree (NAME) as (
select r.rdb$relation_name from rdb$relations r
union all
select r2.rdb$relation_name || http://tree.NAME from rdb$relations r2, tree
where 1 = 0
),
tree_2 as (
select c.rdb$character_set_name from rdb$character_sets c
union all
select c2.rdb$character_set_name from rdb$character_sets c2, tree_2
where 1 = 0
)
select * from tree, tree_2

-------------
Dynamic SQL Error.
SQL error code = -206.
Column unknown.
http://TREE.NAME.
At line 5, column 43.

Commits: 25c5d1a 8dc2601 6d9f5e2

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC3 [ 10381 ]

Fix Version: 2.1.4 [ 10361 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

The bug present since initial CTE implementation

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Version: 2.5 RC1 [ 10362 ]

Version: 2.1.3 [ 10302 ]

Version: 2.5 Beta 2 [ 10300 ]

Version: 2.5 Beta 1 [ 10251 ]

Version: 2.1.2 [ 10270 ]

Version: 2.1.1 [ 10223 ]

Version: 2.5 Alpha 1 [ 10224 ]

Version: 2.1.0 [ 10041 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA277 [ QA277 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pmakowski

Q/A test ok

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: Done successfully

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