mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
myisam/ft_boolean_search.c
-trunc* bug - don't increase yweaks in this case
This commit is contained in:
parent
83ef8c58a7
commit
b4624288a7
3 changed files with 10 additions and 5 deletions
|
@ -345,11 +345,12 @@ static void _ftb_init_index_search(FT_INFO *ftb)
|
||||||
if (ftbe->flags & FTB_FLAG_NO || /* 2 */
|
if (ftbe->flags & FTB_FLAG_NO || /* 2 */
|
||||||
ftbe->up->ythresh - ftbe->up->yweaks >1) /* 1 */
|
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;
|
ftbw->docid[0]=HA_OFFSET_ERROR;
|
||||||
for (ftbe=ftbw->up; ftbe != top_ftbe; ftbe=ftbe->up)
|
for (ftbe=(FTB_EXPR *)ftbw;
|
||||||
if (!(ftbe->flags & FTB_FLAG_NO))
|
ftbe != top_ftbe && !(ftbe->flags & FTB_FLAG_NO);
|
||||||
ftbe->yweaks++;
|
ftbe=ftbe->up)
|
||||||
|
ftbe->up->yweaks++;
|
||||||
ftbe=0;
|
ftbe=0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,6 +148,9 @@ select * from t1 where MATCH a,b AGAINST ('+(support collections) +foobar*' IN B
|
||||||
a b
|
a b
|
||||||
select * from t1 where MATCH a,b AGAINST ('+(+(support collections)) +foobar*' IN BOOLEAN MODE);
|
select * from t1 where MATCH a,b AGAINST ('+(+(support collections)) +foobar*' IN BOOLEAN MODE);
|
||||||
a b
|
a b
|
||||||
|
select * from t1 where MATCH a,b AGAINST ('+collections -supp* -foobar*' IN BOOLEAN MODE);
|
||||||
|
a b
|
||||||
|
Full-text indexes are called collections
|
||||||
select * from t1 where MATCH a,b AGAINST ('"xt indexes"' IN BOOLEAN MODE);
|
select * from t1 where MATCH a,b AGAINST ('"xt indexes"' IN BOOLEAN MODE);
|
||||||
a b
|
a b
|
||||||
select * from t1 where MATCH a,b AGAINST('"space model' IN BOOLEAN MODE);
|
select * from t1 where MATCH a,b AGAINST('"space model' IN BOOLEAN MODE);
|
||||||
|
|
|
@ -67,6 +67,7 @@ select * from t1 where MATCH a,b AGAINST ('"xt indexes"' IN BOOLEAN MODE);
|
||||||
|
|
||||||
select * from t1 where MATCH a,b AGAINST ('+(support collections) +foobar*' IN BOOLEAN MODE);
|
select * from t1 where MATCH a,b AGAINST ('+(support collections) +foobar*' IN BOOLEAN MODE);
|
||||||
select * from t1 where MATCH a,b AGAINST ('+(+(support collections)) +foobar*' IN BOOLEAN MODE);
|
select * from t1 where MATCH a,b AGAINST ('+(+(support collections)) +foobar*' IN BOOLEAN MODE);
|
||||||
|
select * from t1 where MATCH a,b AGAINST ('+collections -supp* -foobar*' IN BOOLEAN MODE);
|
||||||
select * from t1 where MATCH a,b AGAINST ('"xt indexes"' IN BOOLEAN MODE);
|
select * from t1 where MATCH a,b AGAINST ('"xt indexes"' IN BOOLEAN MODE);
|
||||||
|
|
||||||
# bug#2708, bug#3870 crash
|
# bug#2708, bug#3870 crash
|
||||||
|
|
Loading…
Reference in a new issue