• Igor Babaev's avatar
    Fixed LP bug #944782. · 6f3c39a0
    Igor Babaev authored
    This bug in the function JOIN::drop_unused_derived_keys() could
    leave the internal structures for a materialized derived table
    in an inconsistent state. This led to a not quite correct EXPLAIN
    output when no additional key had been created to access the table.
    It also may lead to more serious consequences: so, the test case
    added with this fix caused a crash in mariadb-5.5.20.  
    6f3c39a0
derived_view.test 38.4 KB