full outer join in subrequest with coalesce ( iif )
----------------------------------------------------
Key: CORE-4083
URL: http://tracker.firebirdsql.org/browse/CORE-4083
Project: Firebird Core
Issue Type: Bug
Components: Engine
Affects Versions: 2.5.2 Update 1
Environment: LI-V6.3.2.26540 Firebird 2.5 ( тестовый x64 debian
wheezy, fb c firebirsql.org, Intel i5)
LI-V6.3.2.26508 Firebird 2.5 ( основной рабочий x64 debian squeeze, fb из
wheezy, Intel xeon)
LI-V6.3.2.26539 Firebird 2.5 ( тестовый x64 debian wheezy, fb c firebirsql.org,
Intel i5)
Reporter: Nikolay
Priority: Critical
select
A_SOME_FIELD,
B_SOME_FIELD,
C_SOME_FIELD,
COALESCE_FIELD
from
(
select
A.SOME_FIELD as A_SOME_FIELD,
B.SOME_FIELD as B_SOME_FIELD,
C.SOME_FIELD as C_SOME_FIELD,
coalesce(A.SOME_FIELD, B.SOME_FIELD, c.SOME_FIELD) as COALESCE_FIELD
from
(select null as SOME_FIELD from RDB$DATABASE) A
full join
(select 1 as SOME_FIELD from RDB$DATABASE) B on B.SOME_FIELD =
A.SOME_FIELD
full join
(select null as SOME_FIELD from RDB$DATABASE) C on C.SOME_FIELD =
B.SOME_FIELD
) x
expected result (ожидаемый результат):
null null null null
null 1 null null
null null null null
got result (полученный результат ):
null null null null
null 1 null null <---
null null null null
Problem with more then 2 full join and subrequest
in firebird 2.1.3 request works fine
ru: http://www.sql.ru/forum/actualthread.aspx?tid=1017752
--
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
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel