mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
opt_range.cc:
Corrected fix for bug#18165 sql/opt_range.cc: Corrected fix for bug#18165
This commit is contained in:
parent
d0394c7070
commit
84a6539345
1 changed files with 3 additions and 4 deletions
|
|
@ -3586,8 +3586,7 @@ static SEL_TREE *get_func_mm_tree(PARAM *param, Item_func *cond_func,
|
|||
|
||||
case Item_func::BETWEEN:
|
||||
{
|
||||
int i= (int ) value;
|
||||
if (! i)
|
||||
if (!value)
|
||||
{
|
||||
if (inv)
|
||||
{
|
||||
|
|
@ -3610,8 +3609,8 @@ static SEL_TREE *get_func_mm_tree(PARAM *param, Item_func *cond_func,
|
|||
else
|
||||
tree= get_mm_parts(param, cond_func, field,
|
||||
(inv ?
|
||||
(i == 1 ? Item_func::GT_FUNC : Item_func::LT_FUNC) :
|
||||
(i == 1 ? Item_func::LE_FUNC : Item_func::GE_FUNC)),
|
||||
(value == 1 ? Item_func::GT_FUNC : Item_func::LT_FUNC) :
|
||||
(value == 1 ? Item_func::LE_FUNC : Item_func::GE_FUNC)),
|
||||
cond_func->arguments()[0], cmp_type);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue