• Martin Hansson's avatar
    Bug#11766675 - 59839: Aggregation followed by subquery yields wrong result · cd4c263d
    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.
    cd4c263d
sql_select.cc 553 KB