diff options
author | unknown <bar@mysql.com> | 2005-03-24 18:10:46 +0400 |
---|---|---|
committer | unknown <bar@mysql.com> | 2005-03-24 18:10:46 +0400 |
commit | 9b2e4c7c60b3cbb9e1f9e19c011656f5708e7015 (patch) | |
tree | 81eae1c53c9ad3b50b7abb5e8f22486ae989ca6b /mysql-test/r/func_str.result | |
parent | 2621e38bf950879dd339d780d565f44df837c8c4 (diff) | |
download | mariadb-git-9b2e4c7c60b3cbb9e1f9e19c011656f5708e7015.tar.gz |
Fixed that LEFT OUTER JOIN was replaced with a regulat join
in some cases, because "charset(x) = 'string'" was considered
as "x is not null" due to incorrect not_null_tables().
Diffstat (limited to 'mysql-test/r/func_str.result')
-rw-r--r-- | mysql-test/r/func_str.result | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/r/func_str.result b/mysql-test/r/func_str.result index ab652b9d850..5405dbf53d9 100644 --- a/mysql-test/r/func_str.result +++ b/mysql-test/r/func_str.result @@ -636,6 +636,26 @@ drop table t1; select charset(null), collation(null), coercibility(null); charset(null) collation(null) coercibility(null) binary binary 5 +CREATE TABLE t1 (a int, b int); +CREATE TABLE t2 (a int, b int); +INSERT INTO t1 VALUES (1,1),(2,2); +INSERT INTO t2 VALUES (2,2),(3,3); +select t1.*,t2.* from t1 left join t2 on (t1.b=t2.b) +where collation(t2.a) = _utf8'binary' order by t1.a,t2.a; +a b a b +1 1 NULL NULL +2 2 2 2 +select t1.*,t2.* from t1 left join t2 on (t1.b=t2.b) +where charset(t2.a) = _utf8'binary' order by t1.a,t2.a; +a b a b +1 1 NULL NULL +2 2 2 2 +select t1.*,t2.* from t1 left join t2 on (t1.b=t2.b) +where coercibility(t2.a) = 2 order by t1.a,t2.a; +a b a b +1 1 NULL NULL +2 2 2 2 +DROP TABLE t1, t2; select SUBSTR('abcdefg',3,2); SUBSTR('abcdefg',3,2) cd |