Issue Details (XML | Word | Printable)

Key: CORE-4574
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Adriano dos Santos Fernandes
Reporter: Alex Bekhtin
Votes: 0
Watchers: 2

If you were logged in you would be able to see more operations.
Firebird Core

Regression: Incorrect result in subquery with aggregate

Created: 09/Oct/14 11:40 AM   Updated: 23/Sep/15 11:30 AM
Component/s: Engine
Affects Version/s: 3.0 Alpha 1
Fix Version/s: 3.0 Beta 1

Environment: Firebird-

QA Status: Done successfully

 Description  « Hide
with A(ID) as
    select 1 from rdb$database
    union all
    select 2 from rdb$database
    union all
    select 3 from rdb$database
B(ID1, ID2) as
    select 1, null from rdb$database
    union all
    select 2, null from rdb$database
    union all
    select 3, null from rdb$database
    sum((select count(*) from B where B.ID1 = A.ID))
    sum((select count(*) from B where B.ID2 = A.ID))
    -- must be (3,0) (FB2.5) , but not (3,3) (FB3.0)
from A

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.