diff options
author | monty@hundin.mysql.fi <> | 2002-12-03 13:08:25 +0200 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-12-03 13:08:25 +0200 |
commit | 8830eb4aa9fcfd4467407a8c1236d24c2af6bdfb (patch) | |
tree | 4cad7c11d248679cf59fce6e92c37d2d7dc6e486 /mysql-test/t/innodb.test | |
parent | ce56f927fa2a059f02654b30537f9da2afdd1d33 (diff) | |
download | mariadb-git-8830eb4aa9fcfd4467407a8c1236d24c2af6bdfb.tar.gz |
Change of internal key_field=NULL handling to avoid error messages.
Optimized SELECT DISTINCT ... ORDER BY ... LIMIT
Fixed reference to uninitalized variable
Diffstat (limited to 'mysql-test/t/innodb.test')
-rw-r--r-- | mysql-test/t/innodb.test | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mysql-test/t/innodb.test b/mysql-test/t/innodb.test index 8edde83507a..eb5b0c9efd2 100644 --- a/mysql-test/t/innodb.test +++ b/mysql-test/t/innodb.test @@ -673,3 +673,26 @@ UPDATE t1,t2 SET t1.d=t2.d,t2.d=30 WHERE t1.n=t2.n; select * from t1; select * from t2; drop table t1,t2; + +# +# Testing of IFNULL +# +create table t1 (a int, b int) type=innodb; +insert into t1 values(20,null); +select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on +t2.b=t3.a; +select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on +t2.b=t3.a order by 1; +insert into t1 values(10,null); +select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on +t2.b=t3.a order by 1; +drop table t1; + +# +# Test of read_through not existing const_table +# + +create table t1 (a varchar(10) not null) type=myisam; +create table t2 (b varchar(10) not null unique) type=innodb; +select t1.a from t1,t2 where t1.a=t2.b; +drop table t1,t2; |