summaryrefslogtreecommitdiff
path: root/mysql-test/t/negation_elimination.test
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-08-31 21:10:57 +0300
committerunknown <bell@sanja.is.com.ua>2004-08-31 21:10:57 +0300
commit1dc52f07633b6a0f81b7b0cb8e1a5b438a39dce5 (patch)
tree00228acf5041d7b4ceb585e899cdb4bc1384f24f /mysql-test/t/negation_elimination.test
parentf45c482aa9a546ca6ad0f258aa0a8358522f5c2f (diff)
downloadmariadb-git-1dc52f07633b6a0f81b7b0cb8e1a5b438a39dce5.tar.gz
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
Diffstat (limited to 'mysql-test/t/negation_elimination.test')
-rw-r--r--mysql-test/t/negation_elimination.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/t/negation_elimination.test b/mysql-test/t/negation_elimination.test
index 49428cc238b..c50a9678edb 100644
--- a/mysql-test/t/negation_elimination.test
+++ b/mysql-test/t/negation_elimination.test
@@ -65,4 +65,8 @@ select * from t1 where not((a < 5 and a < 10) and (not(a > 16) or a > 17));
explain select * from t1 where ((a between 5 and 15) and (not(a like 10)));
select * from t1 where ((a between 5 and 15) and (not(a like 10)));
+delete from t1 where a > 3;
+select a, not(not(a)) from t1;
+explain extended select a, not(not(a)), not(a <= 2 and not(a)), not(a not like "1"), not (a not in (1,2)), not(a != 2) from t1 where not(not(a)) having not(not(a));
+
drop table t1;