summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorsvoj@mysql.com/april.(none) <>2007-04-13 02:31:34 +0500
committersvoj@mysql.com/april.(none) <>2007-04-13 02:31:34 +0500
commit005d8c5284a84752b9abc7b99d153e6aee8f1977 (patch)
tree30e83f4f6ff130edca8dd10346bd4b80d34a077d /sql/item_func.cc
parentdb45dc5f02311303299141495dce360e1463b5b0 (diff)
downloadmariadb-git-005d8c5284a84752b9abc7b99d153e6aee8f1977.tar.gz
BUG#25951 - ignore/use index does not work with fulltext
IGNORE/USE/FORCE INDEX hints were honored when choosing FULLTEXT index. With this fix these hints are ignored. For regular indexes we may perform table scan instead of index lookup when IGNORE INDEX was specified. We cannot do this for FULLTEXT in NLQ 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 88c3dfcdfc0..c6b2fa5cc3e 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -3158,7 +3158,7 @@ bool Item_func_match::fix_index()
for (keynr=0 ; keynr < table->keys ; keynr++)
{
if ((table->key_info[keynr].flags & HA_FULLTEXT) &&
- (table->keys_in_use_for_query.is_set(keynr)))
+ (table->keys_in_use.is_set(keynr)))
{
ft_to_key[fts]=keynr;
ft_cnt[fts]=0;