• unknown's avatar
    BUG#22562 - REPAIR TABLE .. USE_FRM causes server crash on Windows and server · 31754c57
    unknown authored
                hangs on Linux
    
    If REPAIR TABLE ... USE_FRM is issued for table that is located in different
    than default database server crash could happen.
    
    In reopen_name_locked_table take database name from table_list (user specified
    or default database) instead of from thd (default database).
    
    Affects 4.1 only.
    
    
    mysql-test/r/repair.result:
      A test case for BUG#22562.
    mysql-test/t/repair.test:
      A test case for BUG#22562.
    sql/sql_base.cc:
      In reopen_name_locked_table take database name from table_list (user specified
      or default database) instead of from thd (default database).
    31754c57
repair.result 1.97 KB