• Igor Babaev's avatar
    Fixed LP bug #806097. · a515802c
    Igor Babaev authored
    The value of THD::used tables should be re-evaluated after merges
    of views and derived tables into the main query. 
    Now it's done in the function SELECT_LEX::update_used_tables.
    The re-evaluation of the 'used_table' bitmaps for the items
    in HAVING, GROUP BY and ORDER BY clauses has been added as well.
     
    a515802c
sql_select.cc 694 KB