• Igor Babaev's avatar
    MDEV-16353 Server crash on query with CTE · b2f86ebd
    Igor Babaev authored
    This bug caused crashes for queries with unreferenced non-recursive
    CTEs specified by unions.It happened because the function
    st_select_lex_unit::prepare() tried to use the value of the field 'derived'
    that could not be set for unferenced CTEs as there was no derived
    table associated with an unreferenced CTE.
    b2f86ebd
sql_union.cc 45.4 KB