mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
fixed a bug where "MATCH ... AGAINST () >=0" was treated as if it was >
This commit is contained in:
parent
8ade6771d7
commit
195aa6c98f
1 changed files with 3 additions and 3 deletions
|
@ -1371,15 +1371,15 @@ add_ft_keys(DYNAMIC_ARRAY *keyuse_array,
|
||||||
*arg1=(Item_func *)(func->arguments()[1]);
|
*arg1=(Item_func *)(func->arguments()[1]);
|
||||||
if ((functype == Item_func::GE_FUNC ||
|
if ((functype == Item_func::GE_FUNC ||
|
||||||
functype == Item_func::GT_FUNC) &&
|
functype == Item_func::GT_FUNC) &&
|
||||||
arg0->type() == Item::FUNC_ITEM &&
|
arg0->type() == Item::FUNC_ITEM &&
|
||||||
arg0->functype() == Item_func::FT_FUNC &&
|
arg0->functype() == Item_func::FT_FUNC &&
|
||||||
arg1->const_item() && arg1->val()>=0)
|
arg1->const_item() && arg1->val()>0)
|
||||||
cond_func=(Item_func_match *) arg0;
|
cond_func=(Item_func_match *) arg0;
|
||||||
else if ((functype == Item_func::LE_FUNC ||
|
else if ((functype == Item_func::LE_FUNC ||
|
||||||
functype == Item_func::LT_FUNC) &&
|
functype == Item_func::LT_FUNC) &&
|
||||||
arg1->type() == Item::FUNC_ITEM &&
|
arg1->type() == Item::FUNC_ITEM &&
|
||||||
arg1->functype() == Item_func::FT_FUNC &&
|
arg1->functype() == Item_func::FT_FUNC &&
|
||||||
arg0->const_item() && arg0->val()>=0)
|
arg0->const_item() && arg0->val()>0)
|
||||||
cond_func=(Item_func_match *) arg1;
|
cond_func=(Item_func_match *) arg1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue