diff options
author | unknown <serg@serg.mylan> | 2005-01-18 11:27:38 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-01-18 11:27:38 +0100 |
commit | f003895df9f562018ba47e5f7af2eae03d937368 (patch) | |
tree | 99f93a1a1e5fcfbdf416287bbe5c939a5ba34868 /myisam | |
parent | 77b8a94d7a767291f90d57f0e667b421c5f41037 (diff) | |
download | mariadb-git-f003895df9f562018ba47e5f7af2eae03d937368.tar.gz |
myisam/ft_boolean_search.c
-trunc* bug - don't increase yweaks in this case
myisam/ft_boolean_search.c:
-trunc* bug - don't increase yweaks in this case
mysql-test/r/fulltext.result:
-trunc* bug - don't increase yweaks in this case
mysql-test/t/fulltext.test:
-trunc* bug - don't increase yweaks in this case
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/ft_boolean_search.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/myisam/ft_boolean_search.c b/myisam/ft_boolean_search.c index ffc7e1bf104..aab3854dd34 100644 --- a/myisam/ft_boolean_search.c +++ b/myisam/ft_boolean_search.c @@ -345,11 +345,12 @@ static void _ftb_init_index_search(FT_INFO *ftb) if (ftbe->flags & FTB_FLAG_NO || /* 2 */ ftbe->up->ythresh - ftbe->up->yweaks >1) /* 1 */ { - FTB_EXPR *top_ftbe=ftbe->up->up; + FTB_EXPR *top_ftbe=ftbe->up; ftbw->docid[0]=HA_OFFSET_ERROR; - for (ftbe=ftbw->up; ftbe != top_ftbe; ftbe=ftbe->up) - if (!(ftbe->flags & FTB_FLAG_NO)) - ftbe->yweaks++; + for (ftbe=(FTB_EXPR *)ftbw; + ftbe != top_ftbe && !(ftbe->flags & FTB_FLAG_NO); + ftbe=ftbe->up) + ftbe->up->yweaks++; ftbe=0; break; } @@ -363,7 +364,7 @@ static void _ftb_init_index_search(FT_INFO *ftb) else reset_tree(& ftb->no_dupes); } - + if (_ft2_search(ftb, ftbw, 1)) return; } |