diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 70bd549612c..fe62ac858ac 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -4132,7 +4132,8 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables, goto err; } - if (operator_func == &handler::ha_repair) + if (operator_func == &handler::ha_repair && + !(check_opt->sql_flags & TT_USEFRM)) { if ((table->table->file->check_old_types() == HA_ADMIN_NEEDS_ALTER) || (table->table->file->ha_check_for_upgrade(check_opt) ==