• Igor Babaev's avatar
    Fixed the bug mdev-13796. · 4c9d19ee
    Igor Babaev authored
    A reference to a CTE may occur not in the master of the CTE
    specification. In this case if the reference to the CTE is
    the first one the specification should be detached from its
    master and attached to the referencing select.
    
    Also fixed the TYPE column in the lines of the EXPLAIN output
    created for CTE tables.
    4c9d19ee
cte_nonrecursive.test 22.2 KB