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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 4aa68c51b3e..a74a4c2b761 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -539,7 +539,7 @@ int mysql_update(THD *thd,
MY_BITMAP *save_write_set= table->write_set;
if (query_plan.index < MAX_KEY && old_covering_keys.is_set(query_plan.index))
- table->add_read_columns_used_by_index(query_plan.index);
+ table->mark_columns_used_by_index(query_plan.index);
else
table->use_all_columns();