diff options
author | konstantin@mysql.com <> | 2004-11-11 21:39:35 +0300 |
---|---|---|
committer | konstantin@mysql.com <> | 2004-11-11 21:39:35 +0300 |
commit | e5f4c7a0bd35ec81928b15664dcad53d5aba56e3 (patch) | |
tree | d65c1d25b2742712e5c398191b3e7eb40d0692e6 /sql/sql_select.cc | |
parent | ea97ce50b97b32bb6135ad7aa6d487630bdcfa84 (diff) | |
download | mariadb-git-e5f4c7a0bd35ec81928b15664dcad53d5aba56e3.tar.gz |
Rename: Item::val -> Item::val_real().
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 89edc06139c..d07e274b0b7 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -2936,14 +2936,14 @@ add_ft_keys(DYNAMIC_ARRAY *keyuse_array, Item_func *arg0=(Item_func *)(func->arguments()[0]), *arg1=(Item_func *)(func->arguments()[1]); if (arg1->const_item() && - ((functype == Item_func::GE_FUNC && arg1->val()> 0) || - (functype == Item_func::GT_FUNC && arg1->val()>=0)) && + ((functype == Item_func::GE_FUNC && arg1->val_real() > 0) || + (functype == Item_func::GT_FUNC && arg1->val_real() >=0)) && arg0->type() == Item::FUNC_ITEM && arg0->functype() == Item_func::FT_FUNC) cond_func=(Item_func_match *) arg0; else if (arg0->const_item() && - ((functype == Item_func::LE_FUNC && arg0->val()> 0) || - (functype == Item_func::LT_FUNC && arg0->val()>=0)) && + ((functype == Item_func::LE_FUNC && arg0->val_real() > 0) || + (functype == Item_func::LT_FUNC && arg0->val_real() >=0)) && arg1->type() == Item::FUNC_ITEM && arg1->functype() == Item_func::FT_FUNC) cond_func=(Item_func_match *) arg1; |