• Igor Babaev's avatar
    Fixed the bug mdev-12838. · c258ca24
    Igor Babaev authored
    If the optimizer chose an execution plan where
    a semi-join nest were materialized and the
    result of materialization was scanned to access
    other tables by ref access it could build a key
    over columns of the tables from the nest that
    were actually inaccessible.
    The patch performs a proper check whether a key
    that uses columns of the tables from a materialized
    semi-join nest can be employed to access outer tables.
    c258ca24
sql_select.h 63.4 KB