summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index e133fead665..a0ef4020aae 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -6293,7 +6293,7 @@ bool Item_func_match::fix_index()
{
if ((table->key_info[keynr].flags & HA_FULLTEXT) &&
(flags & FT_BOOL ? table->keys_in_use_for_query.is_set(keynr) :
- table->s->keys_in_use.is_set(keynr)))
+ table->s->usable_indexes(table->in_use).is_set(keynr)))
{
ft_to_key[fts]=keynr;