• Igor Babaev's avatar
    MDEV-16930 Crash when VALUES in derived table contains expressions · c43d11b9
    Igor Babaev authored
    This patch always provides columns of the temporary table used for
    materialization of a table value constructor with some names.
    Before this patch these names were always borrowed from the items
    of the first row of the table value constructor. When this row
    contained expressions and expressions were not named then it could cause
    different kinds of problems. In particular if the TVC is used as the
    specification of a derived table this could cause a crash.
    The names given to the expressions used in a TVC are the same as those
    given to the columns of the result set from the corresponding SELECT.
    c43d11b9
table_value_constr.result 53.6 KB