diff options
author | unknown <serg@serg.mysql.com> | 2002-01-14 15:40:54 +0000 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2002-01-14 15:40:54 +0000 |
commit | a5529dcd578ef8074eaab9d4acaa42746b062aed (patch) | |
tree | e0e209e352c03b86d76bfd2928f487e230a1a208 /myisam/ft_boolean_search.c | |
parent | 859db557a123839c58b960f9d299ceec2705accd (diff) | |
download | mariadb-git-a5529dcd578ef8074eaab9d4acaa42746b062aed.tar.gz |
ftb-bugfix
Diffstat (limited to 'myisam/ft_boolean_search.c')
-rw-r--r-- | myisam/ft_boolean_search.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/myisam/ft_boolean_search.c b/myisam/ft_boolean_search.c index 1b71337cc3b..c4e29bd636b 100644 --- a/myisam/ft_boolean_search.c +++ b/myisam/ft_boolean_search.c @@ -369,6 +369,8 @@ float ft_boolean_find_relevance(FT_INFO *ftb, byte *record, uint length) if (docid == HA_POS_ERROR) return -2.0; + if (!ftb->queue.elements) + return 0; if (ftb->state == READY || ftb->state == INDEX_DONE) { for (i=1; i<=ftb->queue.elements; i++) |