mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
opt_range.cc:
Fixed bug #11853. Corrected the code of the range optimization for NOT IN and NOT BETWEEN. range.test, range.result: Fixed bug #11853.
This commit is contained in:
@@ -3531,7 +3531,8 @@ static SEL_TREE *get_mm_tree(PARAM *param,COND *cond)
|
||||
if (arg->type() != Item::FUNC_ITEM)
|
||||
DBUG_RETURN(0);
|
||||
cond_func= (Item_func*) arg;
|
||||
if (cond_func->select_optimize() == Item_func::OPTIMIZE_NONE)
|
||||
if (cond_func->functype() != Item_func::BETWEEN &&
|
||||
cond_func->functype() != Item_func::IN_FUNC)
|
||||
DBUG_RETURN(0);
|
||||
inv= TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user