isc_info_sql_relation_alias reports incorrect alias for CTE
-----------------------------------------------------------

                 Key: CORE-5655
                 URL: http://tracker.firebirdsql.org/browse/CORE-5655
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 4.0 Alpha 1, 3.0.2, 2.5.7
            Reporter: Mark Rotteveel


For the following query

with CTE as (SELECT column1 from TABLEA T)
select CT.column1 from CTE CT 

isc_info_sql_relation_alias reports an incorrect alias. It reports 'CT T', 
while 'CT' is expected.

Note that this also applies for all variants with/without an explicit alias, 
for example

with CTE as (SELECT column1 from TABLEA)
select column1 from CTE

will report 'CTE TABLEA' instead of 'CTE'

This is especially a problem if you use the alias information to generate 
enhancements for a base query (see JDBC-513).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to