diff options
Diffstat (limited to 'sql/sql_table.cc')
| -rw-r--r-- | sql/sql_table.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 6ab224abee5..7c2875acda3 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -11113,7 +11113,8 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to, from->file->column_bitmaps_signal(); - to->file->prepare_for_insert(); + to->file->prepare_for_insert(0); + DBUG_ASSERT(to->file->inited == handler::NONE); /* Tell handler that we have values for all columns in the to table */ to->use_all_columns(); |
