• Igor Babaev's avatar
    MDEV-26470 "No database" selected when using CTE in a subquery of DELETE statement · 114e18b8
    Igor Babaev authored
    This bug led to reporting bogus messages "No database selected" for DELETE
    statements if they used subqueries in their WHERE conditions and these
    subqueries contained references to CTEs.
    The bug happened because the grammar rule for DELETE statement did not
    call the function LEX::check_cte_dependencies_and_resolve_references() and
    as a result of it references to CTEs were not identified as such.
    
    Approved by Oleksandr Byelkin <sanja@mariadb.com>
    114e18b8
sql_yacc.yy 520 KB