• Igor Babaev's avatar
    MDEV-30586 DELETE with aggregation in subquery of WHERE returns bogus error · c6376842
    Igor Babaev authored
    The parser code for single-table DELETE missed the call of the function
    LEX::check_main_unit_semantics(). As a result the the field nested level
    of SELECT_LEX structures remained set 0 for all non-top level selects.
    This could lead to different kind of problems. In particular this did not
    allow to determine properly the selects where set functions had to be
    aggregated when they were used in inner subqueries.
    
    Approved by Oleksandr Byelkin <sanja@mariadb.com>
    c6376842
sql_yacc.yy 554 KB