• Galina Shalygina's avatar
    MDEV-14297: Lost name of a explicitly named CTE column used in · a128fe43
    Galina Shalygina authored
                the non-recursive CTE via prepared statement
    
    The problem appears as the column names of the CTE were allocated on the
    wrong MEMROOT and after the preparation of the statement they disappear.
    
    To fix it in the procedure With_element::rename_columns_of_derived_unit
    the CTE column names are now allocated in the permanent MEMROOT for the
    prepared statements and stored procedures.
    a128fe43
cte_nonrecursive.test 28 KB