diff options
author | unknown <monty@mashka.mysql.fi> | 2002-11-22 13:38:37 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-11-22 13:38:37 +0200 |
commit | 4698a8f3b1b06f26690476c19fb7d12815731277 (patch) | |
tree | d7ae45b828a389751dd4e9225ec1c1d2150e127e /mysql-test/t | |
parent | 6f5b38b9dd0841e1841af1243dd19b5a12b59e34 (diff) | |
parent | cb5a2b2fd5541bf019dd0fe1012e687ce1e68eaa (diff) | |
download | mariadb-git-4698a8f3b1b06f26690476c19fb7d12815731277.tar.gz |
Merge work:/home/bk/mysql into mashka.mysql.fi:/home/my/mysql-3.23
sql/mysqld.cc:
Auto merged
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/null_key.test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/t/null_key.test b/mysql-test/t/null_key.test index 3ab8b993f43..b1cbd5cdfb0 100644 --- a/mysql-test/t/null_key.test +++ b/mysql-test/t/null_key.test @@ -135,3 +135,24 @@ select * from t1, t2 where t1.id = t2.id; alter table t1 add key id (id); select * from t1, t2 where t1.id = t2.id; drop table t1,t2; + +# +# Check bug when doing <=> NULL on an indexed null field +# + +create table t1 ( + id integer, + id2 integer not null, + index (id), + index (id2) +); +insert into t1 values(null,null),(1,1); +select * from t1; +select * from t1 where id <=> null; +select * from t1 where id <=> null or id > 0; +select * from t1 where id is null or id > 0; +select * from t1 where id2 <=> null or id2 > 0; +select * from t1 where id2 is null or id2 > 0; +delete from t1 where id <=> NULL; +select * from t1; +drop table t1; |