• Igor Babaev's avatar
    MDEV-16212 Memory leak with recursive CTE that uses global ORDER BY · d309c2fc
    Igor Babaev authored
               with recursive subquery
    
    There were two problems:
    1. The code did not report that usage of global ORDER BY / LIMIT clauses
    was not supported yet.
    2. The code just reset fake_select_lex of the the unit specifying
    a recursive CTE to NULL and that caused memory leaks in some cases.
    d309c2fc
cte_recursive.test 50 KB