• Gleb Shchepa's avatar
    Bug#38499: flush tables and multitable table update with · a83f5b18
    Gleb Shchepa authored
               derived table cause crash
    
    When a multi-UPDATE command fails to lock some table, and
    subsequently succeeds, the tables need to be reopened if
    they were altered. But the reopening procedure failed for
    derived tables.
    
    Extra cleanup has been added.
    
    
    mysql-test/r/lock_multi.result:
      Added test case for bug #38499.
    mysql-test/t/lock_multi.test:
      Added test case for bug #38499.
    sql/sql_union.cc:
      Bug#38499: flush tables and multitable table update with
                 derived table cause crash
      
      Obsolete assertion has been removed.
    sql/sql_update.cc:
      Bug#38499: flush tables and multitable table update with
                 derived table cause crash
      
      Extra cleanup for derived tables has been added:
      1) unit.cleanup(),
      2) unit->reinit_exec_mechanism().
    a83f5b18
lock_multi.result 3.62 KB