mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
cleanup: Item_func_opt_neg::negate()
remove redundant method
This commit is contained in:
@@ -839,7 +839,6 @@ public:
|
|||||||
Item_func_opt_neg(THD *thd, List<Item> &list):
|
Item_func_opt_neg(THD *thd, List<Item> &list):
|
||||||
Item_bool_func(thd, list), negated(0), pred_level(0) {}
|
Item_bool_func(thd, list), negated(0), pred_level(0) {}
|
||||||
public:
|
public:
|
||||||
inline void negate() { negated= !negated; }
|
|
||||||
inline void top_level_item() { pred_level= 1; }
|
inline void top_level_item() { pred_level= 1; }
|
||||||
bool is_top_level_item() const { return pred_level; }
|
bool is_top_level_item() const { return pred_level; }
|
||||||
Item *neg_transformer(THD *thd)
|
Item *neg_transformer(THD *thd)
|
||||||
|
@@ -9016,8 +9016,7 @@ predicate:
|
|||||||
Item_func_in *item= new (thd->mem_root) Item_func_in(thd, *$7);
|
Item_func_in *item= new (thd->mem_root) Item_func_in(thd, *$7);
|
||||||
if (item == NULL)
|
if (item == NULL)
|
||||||
MYSQL_YYABORT;
|
MYSQL_YYABORT;
|
||||||
item->negate();
|
$$= item->neg_transformer(thd);
|
||||||
$$= item;
|
|
||||||
}
|
}
|
||||||
| bit_expr BETWEEN_SYM bit_expr AND_SYM predicate
|
| bit_expr BETWEEN_SYM bit_expr AND_SYM predicate
|
||||||
{
|
{
|
||||||
@@ -9031,8 +9030,7 @@ predicate:
|
|||||||
item= new (thd->mem_root) Item_func_between(thd, $1, $4, $6);
|
item= new (thd->mem_root) Item_func_between(thd, $1, $4, $6);
|
||||||
if (item == NULL)
|
if (item == NULL)
|
||||||
MYSQL_YYABORT;
|
MYSQL_YYABORT;
|
||||||
item->negate();
|
$$= item->neg_transformer(thd);
|
||||||
$$= item;
|
|
||||||
}
|
}
|
||||||
| bit_expr SOUNDS_SYM LIKE bit_expr
|
| bit_expr SOUNDS_SYM LIKE bit_expr
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user