diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2013-08-23 16:32:56 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2013-08-23 16:32:56 +0400 |
commit | 970542ec90951c3e9d68ff310cdf181465854aaa (patch) | |
tree | 8cad06c470ae4b87ffe339ca58f4f7e28a7714a9 /mysql-test/r/join_outer_jcl6.result | |
parent | f5ea23b6e2bedb4bdaed7f53325cfce35acc8a3e (diff) | |
download | mariadb-git-970542ec90951c3e9d68ff310cdf181465854aaa.tar.gz |
MDEV-4836: Wrong result on <not null date column> IS NULL (old documented hack stopped working)
- When applying optimization introduced by MDEV-4817, ignore the conditions that have form
"datetime_not_null_col IS NULL".
Diffstat (limited to 'mysql-test/r/join_outer_jcl6.result')
-rw-r--r-- | mysql-test/r/join_outer_jcl6.result | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/r/join_outer_jcl6.result b/mysql-test/r/join_outer_jcl6.result index 82805a883b3..874ca16c39c 100644 --- a/mysql-test/r/join_outer_jcl6.result +++ b/mysql-test/r/join_outer_jcl6.result @@ -2149,6 +2149,18 @@ id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t0.a 1 Using index drop table t0, t1; +# +# MDEV-4836: Wrong result on <not null date column> IS NULL (old documented hack stopped working) +# (this is a regression after fix for MDEV-4817) +# +CREATE TABLE t1 (id INT, d DATE NOT NULL); +INSERT INTO t1 VALUES (1,'0000-00-00'),(2,'0000-00-00'); +CREATE TABLE t2 (i INT); +SELECT * FROM t1 LEFT JOIN t2 ON (id=i) WHERE NULL OR d IS NULL; +id d i +1 0000-00-00 NULL +2 0000-00-00 NULL +DROP TABLE t1,t2; SET optimizer_switch=@save_optimizer_switch; set join_cache_level=default; show variables like 'join_cache_level'; |