• gkodinov/kgeorge@macbook.gmz's avatar
    Bug #21540: Subqueries with no from and aggregate functions return · 5bc16fd9
    gkodinov/kgeorge@macbook.gmz authored
                wrong results
     Mark the containing Item(s) (Item_subselect descendant usually) of 
     a subselect as containing aggregate functions if it has references
     to aggregates functions that are calculated outside its context.
     This tels end_send_group() not to make an Item_subselect descendant in
     select list a copy and causes the correct value being returned.
    5bc16fd9
subselect.result 124 KB