diff options
author | unknown <sanja@montyprogram.com> | 2012-05-25 10:29:53 +0300 |
---|---|---|
committer | unknown <sanja@montyprogram.com> | 2012-05-25 10:29:53 +0300 |
commit | f45784c8503d0bbe77f3aec351fc87ff536b19be (patch) | |
tree | ed6e0b6cc29483f0707c7ce7bb3abe666384fc9d /mysql-test/t/func_test.test | |
parent | d56f5dae1ef60468dd7497453bcdca9b653922ca (diff) | |
download | mariadb-git-f45784c8503d0bbe77f3aec351fc87ff536b19be.tar.gz |
Fix of LP bug#992380 + revise fix_fields about missing with_subselect collection
The problem is that some fix_fields do not call Item_func::fix_fields and do not collect with subselect_information.
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 77bf3be5e72..4cba29986a1 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; |