summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/key.cc')
-rw-r--r--sql/key.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/key.cc b/sql/key.cc
index 53f897de15f..79f1c55b61c 100644
--- a/sql/key.cc
+++ b/sql/key.cc
@@ -466,7 +466,7 @@ void key_unpack(String *to, TABLE *table, KEY *key)
bool is_key_used(TABLE *table, uint idx, const MY_BITMAP *fields)
{
- table->mark_columns_used_by_index(idx, &table->tmp_set);
+ table->mark_index_columns(idx, &table->tmp_set);
return bitmap_is_overlapping(&table->tmp_set, fields);
}