mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
opt_range.cc:
Post review corrections for optimization request #10561. sql/opt_range.cc: Post review corrections for optimization request #10561.
This commit is contained in:
@@ -3349,9 +3349,10 @@ static SEL_TREE *get_ne_mm_tree(PARAM *param, Item_func *cond_func,
|
|||||||
value constant in the predicate
|
value constant in the predicate
|
||||||
cmp_type compare type for the field
|
cmp_type compare type for the field
|
||||||
inv TRUE <> NOT cond_func is considered
|
inv TRUE <> NOT cond_func is considered
|
||||||
|
(makes sense only when cond_func is BETWEEN or IN)
|
||||||
|
|
||||||
RETURN
|
RETURN
|
||||||
Pointer to tree built tree
|
Pointer to the tree built tree
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static SEL_TREE *get_func_mm_tree(PARAM *param, Item_func *cond_func,
|
static SEL_TREE *get_func_mm_tree(PARAM *param, Item_func *cond_func,
|
||||||
@@ -3534,14 +3535,14 @@ static SEL_TREE *get_mm_tree(PARAM *param,COND *cond)
|
|||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
}
|
}
|
||||||
else if (cond_func->select_optimize() == Item_func::OPTIMIZE_NONE)
|
else if (cond_func->select_optimize() == Item_func::OPTIMIZE_NONE)
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
|
|
||||||
param->cond= cond;
|
param->cond= cond;
|
||||||
|
|
||||||
switch (cond_func->functype()) {
|
switch (cond_func->functype()) {
|
||||||
case Item_func::BETWEEN:
|
case Item_func::BETWEEN:
|
||||||
if (cond_func->arguments()[0]->type() != Item::FIELD_ITEM)
|
if (cond_func->arguments()[0]->type() != Item::FIELD_ITEM)
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
field_item= (Item_field*) (cond_func->arguments()[0]);
|
field_item= (Item_field*) (cond_func->arguments()[0]);
|
||||||
value= NULL;
|
value= NULL;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user