• kaa@kaamos.(none)'s avatar
    Fix for bug #33049: Assert while running test-as3ap test(mysql-bench · 0a29b8b0
    kaa@kaamos.(none) authored
                        suite)
    
    Under some circumstances a combination of aggregate functions and
    GROUP BY in a SELECT query over a VIEW could lead to incorrect
    calculation of the result type of the aggregate function. This in
    turn could result in incorrect results, or assertion failures on debug
    builds.
    
    Fixed by changing the logic in Item_sum_hybrid::fix_fields() so that
    the argument's item is dereferenced before calling its type() method.
    0a29b8b0
item_sum.cc 85.2 KB