summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2022-07-07 20:06:48 +0300
committerAleksey Midenkov <midenok@gmail.com>2022-07-07 20:06:48 +0300
commita890e27eb1cdf6d5781be4fbdfb0d00e3f20a5f6 (patch)
tree3aad4d608f5a2cfbbb006558f26a61e2ec45e986
parent2b9fb342cfc2d34f69c648d97a939b70b569d5fa (diff)
downloadmariadb-git-bb-10.9-midenok-tmp.tar.gz
-rw-r--r--sql/sql_table.cc2
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));