summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 2ca03620b17..f3ceb50c8c5 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -969,7 +969,8 @@ update_begin:
can_compare_record= records_are_comparable(table);
explain->tracker.on_scan_init();
- table->file->prepare_for_insert();
+ table->file->prepare_for_insert(1);
+ DBUG_ASSERT(table->file->inited != handler::NONE);
THD_STAGE_INFO(thd, stage_updating);
while (!(error=info.read_record()) && !thd->killed)
@@ -2028,7 +2029,7 @@ int multi_update::prepare(List<Item> &not_used_values,
{
table->read_set= &table->def_read_set;
bitmap_union(table->read_set, &table->tmp_set);
- table->file->prepare_for_insert();
+ table->file->prepare_for_insert(1);
}
}
if (unlikely(error))