diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2012-06-20 15:01:28 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2012-06-20 15:01:28 +0400 |
commit | 2b59944de885de8d7061c14c0626379848a60e28 (patch) | |
tree | a266816b7b2a7e5f2266fa46b7b8627aa5543773 /mysql-test/t/func_test.test | |
parent | 29c3a2730e497a71f4be9af52c2783424237263b (diff) | |
parent | 7342d4fad415592c855c1c830a49a28b153445d6 (diff) | |
download | mariadb-git-2b59944de885de8d7061c14c0626379848a60e28.tar.gz |
Merge 5.3 -> 5.5
Diffstat (limited to 'mysql-test/t/func_test.test')
-rw-r--r-- | mysql-test/t/func_test.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/t/func_test.test b/mysql-test/t/func_test.test index f697e0b477a..6a99b975e81 100644 --- a/mysql-test/t/func_test.test +++ b/mysql-test/t/func_test.test @@ -160,3 +160,23 @@ SELECT LEAST(1.1,1.2,NULL,1.0) FROM DUAL; SELECT GREATEST(1.5E+2,1.3E+2,NULL) FROM DUAL; # End of 4.1 tests + +# +# test of replacing NOT <field> +# +create table t1 (a int); +insert into t1 values (1), (100), (0), (NULL); + +select not a from t1; +explain extended select not a from t1; + +select * from t1 where not a; +explain extended select * from t1 where not a; + +select not (a+0) from t1; +explain extended select not (a+0) from t1; + +select * from t1 where not (a+0); +explain extended select * from t1 where not (a+0); + +drop table t1; |