Field alias disapears in complex query
--------------------------------------

                 Key: CORE-5713
                 URL: http://tracker.firebirdsql.org/browse/CORE-5713
             Project: Firebird Core
          Issue Type: Bug
    Affects Versions: 2.5.8, 3.0.2, 2.5.7
            Reporter: Alex Kurov


For example this query has a predictable result with two columns: a1 and a2

select 1 a1, 2 a2
from rdb$database
union all
select 1 a1, coalesce(cast(null as varchar(64)), 0) a2
from rdb$database

But this one has a result with columns a1 and F_1
select a1, a2
from
  (select 1 a1, 2 a2
  from rdb$database)
group by 1, 2
union all
select 1 a1, coalesce(cast(null as varchar(64)), 0) a2
from rdb$database

-- 
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