diff --git a/sql/sql_table.cc b/sql/sql_table.cc index f6de9e34785..e9be44d7f24 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -2570,7 +2570,7 @@ send_result_message: table->table->s->version=0; // Force close of table else if (open_for_modify) { - if (table->table->tmp_table) + if (table->table->s->tmp_table) table->table->file->info(HA_STATUS_CONST); else {