diff options
-rw-r--r-- | sql/sql_table.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 8adec337942..4a20a4999a4 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -11405,6 +11405,8 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to, MYSQL_TIME query_start; DBUG_ENTER("copy_data_between_tables"); + DBUG_ASSERT(to->s->tmp_table); + /* Two or 3 stages; Sorting, copying data and update indexes */ thd_progress_init(thd, 2 + MY_TEST(order)); |