summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2000-11-29 13:21:02 +0100
committerunknown <serg@serg.mysql.com>2000-11-29 13:21:02 +0100
commitd8a4ee0da2f753e8b65a0bd2b0ec63597eac4ddb (patch)
treec98d8c7182d22ac5094eec31c6cfd31a28687784 /sql
parentc1fdd5b55afab11e981929519b96294cac4f1e04 (diff)
downloadmariadb-git-d8a4ee0da2f753e8b65a0bd2b0ec63597eac4ddb.tar.gz
item_func.cc bug with several fulltext indexes fixed
sql/item_func.cc: bug with several fulltext indexes fixed
Diffstat (limited to 'sql')
-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 ac1e3298d02..bad789479b2 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -1988,7 +1988,7 @@ bool Item_func_match::fix_index()
ft_to_key[mkeys]=ft_to_key[key];
continue;
}
- if (ft_cnt[key] == max_cnt)
+ if (max_cnt && ft_cnt[key] == max_cnt)
{
mkeys++;
ft_cnt[mkeys]=ft_cnt[key];