1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

opt_range.cc:

Corrected fix for bug#18165
This commit is contained in:
evgen@sunlight.local
2006-08-25 00:23:42 +04:00
parent 7240c97d48
commit 32cab70cfa

View File

@ -3609,8 +3609,10 @@ static SEL_TREE *get_func_mm_tree(PARAM *param, Item_func *cond_func,
else
tree= get_mm_parts(param, cond_func, field,
(inv ?
(value == 1 ? Item_func::GT_FUNC : Item_func::LT_FUNC) :
(value == 1 ? Item_func::LE_FUNC : Item_func::GE_FUNC)),
(value == (Item*)1 ? Item_func::GT_FUNC :
Item_func::LT_FUNC):
(value == (Item*)1 ? Item_func::LE_FUNC :
Item_func::GE_FUNC)),
cond_func->arguments()[0], cmp_type);
break;
}