diff options
author | sergefp@mysql.com <> | 2005-03-11 02:17:03 +0300 |
---|---|---|
committer | sergefp@mysql.com <> | 2005-03-11 02:17:03 +0300 |
commit | 5d865045c93e3429819c7840cbce0cd587331b17 (patch) | |
tree | 1a23fa03e38a10c027a627f427f5eddeb9044b97 /mysql-test/t/join_outer.test | |
parent | 4559fb998b8b9cc76e7801933889fbbeba05eb3a (diff) | |
download | mariadb-git-5d865045c93e3429819c7840cbce0cd587331b17.tar.gz |
Fix for BUG#8711: "<=>" may have true value for NULL arguments, so make
Item_func_equal::not_null_tables() always return 0.
Diffstat (limited to 'mysql-test/t/join_outer.test')
-rw-r--r-- | mysql-test/t/join_outer.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/join_outer.test b/mysql-test/t/join_outer.test index bed4d4b033b..f32cc9d56ac 100644 --- a/mysql-test/t/join_outer.test +++ b/mysql-test/t/join_outer.test @@ -450,3 +450,16 @@ select * from t1 left join t2 on b1 = a1 left join t3 on c1 = a1 and b1 is explain select * from t1 left join t2 on b1 = a1 left join t3 on c1 = a1 and b1 is null; drop table t1, t2, t3; + +# Test for BUG#8711 '<=>' was considered to be a NULL-rejecting predicate. +create table t1 ( + a int(11), + b char(10), + key (a) +); +insert into t1 (a) values (1),(2),(3),(4); +create table t2 (a int); + +select * from t1 left join t2 on t1.a=t2.a where not (t2.a <=> t1.a); +select * from t1 left join t2 on t1.a=t2.a having not (t2.a <=> t1.a); +drop table t1,t2; |