• Igor Babaev's avatar
    Fixed the bug mdev-13135. · 2bab29eb
    Igor Babaev authored
    For each SELECT the list sj_nests is built by the
    function simplify_joins() when scanning different
    join nests. This function may be called several
    times for the same join nest. That's why before
    adding a new member to sj_nests it is necessary
    to check if it's already in the list.
    The code of simplify_joins() lacked this check and
    as a result it could cause memory overwright for
    some queries.
    2bab29eb
subselect_mat_cost_bugs.test 14.3 KB