• Martin Hansson's avatar
    Bug#11766675 - 59839: Aggregation followed by subquery yields wrong result · 61b25617
    Martin Hansson authored
    The loop that was looping over subqueries' references to outer field used a
    local boolean variable to tell whether the field was grouped or not. But the
    implementor failed to reset the variable after each iteration. Thus a field
    that was not directly aggregated appeared to be.
    
    Fixed by resetting the variable upon each new iteration.
    61b25617
group_by.result 57.5 KB