• Igor Babaev's avatar
    MDEV-24840 Crash caused by query with IN subquery containing union · da88e1ec
    Igor Babaev authored
               of two table value costructors
    
    This bug affected queries with a [NOT] IN/ANY/ALL subquery whose top level
    unit contained several table value constructors.
    The problem appeared because the code of the function
    Item_subselect::fix_fields() that was responsible for wrapping table
    value constructors encountered at the top level unit of a [NOT] IN/ANY/ALL
    subquery did not take into account that the chain of the select objects
    comprising the unit were not immutable.
    
    Approved by Oleksandr Byelkin <sanja@mariadb.com>
    da88e1ec
sql_tvc.cc 29.8 KB