mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 00:54:30 +02:00
after review patch
mysql-test/r/negation_elimination.result: new tests of negation elimination mysql-test/t/negation_elimination.test: new tests of negation elimination sql/item.h: test of boolean functions added sql/item_cmpfunc.cc: NOT subtree is already checked, so wee need to return just argument sql/item_cmpfunc.h: test of boolean functions added sql/mysql_priv.h: 'place' to detect WHERE clause sql/sql_parse.cc: function for creation negated expression sql/sql_select.cc: removed unused function sql/sql_select.h: removed unused function sql/sql_yacc.yy: 'place' to detect WHERE clause
This commit is contained in:
parent
f45c482aa9
commit
1dc52f0763
10 changed files with 74 additions and 70 deletions
|
|
@ -2707,9 +2707,6 @@ longlong Item_cond_xor::val_int()
|
|||
IS NULL(a) -> IS NOT NULL(a)
|
||||
IS NOT NULL(a) -> IS NULL(a)
|
||||
|
||||
NOTE
|
||||
This method is used in the eliminate_not_funcs() function.
|
||||
|
||||
RETURN
|
||||
New item or
|
||||
NULL if we cannot apply NOT transformation (see Item::neg_transformer()).
|
||||
|
|
@ -2718,7 +2715,7 @@ longlong Item_cond_xor::val_int()
|
|||
Item *Item_func_not::neg_transformer(THD *thd) /* NOT(x) -> x */
|
||||
{
|
||||
// We should apply negation elimination to the argument of the NOT function
|
||||
return eliminate_not_funcs(thd, args[0]);
|
||||
return args[0];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue