diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2013-08-26 16:23:14 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2013-08-26 16:23:14 +0400 |
commit | 7907b9b4da8c299318bd73d32b621dc34acc0f35 (patch) | |
tree | 3c2f723935687cf997f9c37a2b40f7b55b6a59bf /mysql-test/r/join_outer_jcl6.result | |
parent | b9ce8e608f0910899c1bcd0c03e8702afc5277a4 (diff) | |
parent | dbc84ff96c021f9d8b5968812a416bc6890d015a (diff) | |
download | mariadb-git-7907b9b4da8c299318bd73d32b621dc34acc0f35.tar.gz |
Merge fix for MDEV-4942, 5.3->5.5
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..7ce7eb2eec7 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; +# +# Bug mdev-4942: LEFT JOIN with conjunctive +# <non-nullable datetime field> IS NULL in WHERE +# causes an assert failure +# +CREATE TABLE t1 ( i1 int, d1 date ); +INSERT INTO t1 VALUES (1,'2001-06-26'), (2,'2000-11-16'); +CREATE TABLE t2 ( i2 int, d2 date NOT NULL ); +INSERT INTO t2 VALUES (3,'2000-03-06'), (4,'2007-09-25'); +SELECT * FROM t1 LEFT JOIN t2 ON i1 = i2 WHERE d1 IS NULL AND d2 IS NULL; +i1 d1 i2 d2 +DROP TABLE t1,t2; SET optimizer_switch=@save_optimizer_switch; set join_cache_level=default; show variables like 'join_cache_level'; |