• Galina Shalygina's avatar
    MDEV-15478: Lost name of a explicitly named CTE column used in · d251cedd
    Galina Shalygina authored
                the non-recursive CTE defined with UNION
    
    The problem appears as the columns of the non-recursive CTE weren't renamed.
    The renaming procedure was called for recursive CTEs only.
    
    To fix it in the procedure st_select_lex_unit::prepare
    With_element::rename_columns_of_derived_unit is called now for both CTEs:
    recursive and non-recursive.
    d251cedd
cte_nonrecursive.test 28.7 KB