summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <serg@sergbook.mysql.com>2002-11-02 20:35:32 +0100
committerunknown <serg@sergbook.mysql.com>2002-11-02 20:35:32 +0100
commit195aa6c98f94254b33b3d2423833275485de6eca (patch)
tree529649c799b2419897f7c13ba4fa44ccb4663c7d /sql
parent8ade6771d79a0cebbbe6560b77cae257d72ac958 (diff)
downloadmariadb-git-195aa6c98f94254b33b3d2423833275485de6eca.tar.gz
fixed a bug where "MATCH ... AGAINST () >=0" was treated as if it was >
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_select.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 49502a7a116..0c3c19c6e69 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -1371,15 +1371,15 @@ add_ft_keys(DYNAMIC_ARRAY *keyuse_array,
*arg1=(Item_func *)(func->arguments()[1]);
if ((functype == Item_func::GE_FUNC ||
functype == Item_func::GT_FUNC) &&
- arg0->type() == Item::FUNC_ITEM &&
+ arg0->type() == Item::FUNC_ITEM &&
arg0->functype() == Item_func::FT_FUNC &&
- arg1->const_item() && arg1->val()>=0)
+ arg1->const_item() && arg1->val()>0)
cond_func=(Item_func_match *) arg0;
else if ((functype == Item_func::LE_FUNC ||
functype == Item_func::LT_FUNC) &&
arg1->type() == Item::FUNC_ITEM &&
arg1->functype() == Item_func::FT_FUNC &&
- arg0->const_item() && arg0->val()>=0)
+ arg0->const_item() && arg0->val()>0)
cond_func=(Item_func_match *) arg1;
}
}