• Igor Babaev's avatar
    Fixed the bug mdev-12563. · 7a29ca27
    Igor Babaev authored
    The bug happened when the specification of a recursive CTE had
    no recursive references at the top level of the specification.
    In this case the regular processing of derived table references
    of the select containing a non-recursive reference to this
    recursive CTE misses handling the specification unit.
    At the preparation stage any non-recursive reference to a
    recursive CTE must be handled after the preparation of the
    specification unit for this CTE. So we have to force this
    preparation when regular handling of derived tables does not
    do it.
    7a29ca27
sql_derived.h 1.58 KB