• evgen@moonbone.local's avatar
    Fixed bug#18175: The nest_level counter wasn't decremented for union parts which · 0fb6b044
    evgen@moonbone.local authored
    resulted in a wrong error message.
    
    The nest_level counter indicates the depth of nesting for a subselect. It is
    needed to properly resolve aggregate functions in nested subselects. Obviously 
    it shouldn't be incremented for UNION parts because they have the same level of
    nesting. This counter was incremented by 1 in the mysql_new_select() function
    for any new select and wasn't decremented for UNION parts. This resulted in
    wrongly reported error messages.
    
    Now the nest_level counter is decremented by 1 for any union part.
    0fb6b044
union.test 30.6 KB