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
Aliases and error about cyclic dependencies in CTE [CORE2502] #2914
Comments
Modified by: @hvladassignee: Vlad Khorsun [ hvlad ] |
Commented by: @tonal Exampls with only system table. Work query: Error query: {quote} |
Modified by: @hvladstatus: Open [ 1 ] => In Progress [ 3 ] |
Commented by: @hvlad Already fixed |
Modified by: @hvladstatus: In Progress [ 3 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 2.5.8 [ 10809 ] Fix Version: 3.0.3 [ 10810 ] Fix Version: 4.0 Beta 1 [ 10750 ] |
Modified by: @pavel-zotovstatus: Resolved [ 5 ] => Resolved [ 5 ] QA Status: Covered by another test(s) Test Details: See test for CORE5667 |
Modified by: @pavel-zotovstatus: Resolved [ 5 ] => Closed [ 6 ] |
Modified by: @dyemanovsummary: Aliase in CTE => Aliases and error about cyclic dependencies in CTE |
Submitted by: @tonal
Votes: 1
Simple queru with CTE work
{code:sql}
with
CHARGES (ID) as (select ID from CHARGES CR where PERIOD = '2009')
select ID from CHARGES CR
{code}
But if remove aliase in last {bold}select{bold} recive error
{code:sql}
with
CHARGES (ID) as (select ID from CHARGES CR where PERIOD = '2009')
select ID from CHARGES
{code}
{quote}
Invalid token.
Dynamic SQL Error.
SQL error code = -104.
CTE 'CHARGES' has cyclic dependencies.
{quote}
====== Test Details ======
See test for CORE5667
The text was updated successfully, but these errors were encountered: