• Martin Hansson's avatar
    Bug#11766675 - 59839: Aggregation followed by subquery yields wrong result · 9d6b82a6
    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.
    9d6b82a6
group_by.test 45.3 KB