diff options
author | monty@mashka.mysql.fi <> | 2002-11-25 12:19:28 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-11-25 12:19:28 +0200 |
commit | 5dbea1b7a26ca1b171546d1ad042113af5d9bd74 (patch) | |
tree | af2db8bb2a2a932f016529fbf7508121528d132a /mysql-test/r/null_key.result | |
parent | 96212cc300843e6509fbf38083f902f8aebece2a (diff) | |
parent | 05c732e7796f54a5d7facf0adf5f1bbf592b7ecf (diff) | |
download | mariadb-git-5dbea1b7a26ca1b171546d1ad042113af5d9bd74.tar.gz |
Merge with 4.0
Diffstat (limited to 'mysql-test/r/null_key.result')
-rw-r--r-- | mysql-test/r/null_key.result | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mysql-test/r/null_key.result b/mysql-test/r/null_key.result index 85687df411b..484437959a0 100644 --- a/mysql-test/r/null_key.result +++ b/mysql-test/r/null_key.result @@ -228,3 +228,36 @@ alter table t1 add key id (id); select * from t1, t2 where t1.id = t2.id; id id drop table t1,t2; +create table t1 ( +id integer, +id2 integer not null, +index (id), +index (id2) +); +insert into t1 values(null,null),(1,1); +select * from t1; +id id2 +NULL 0 +1 1 +select * from t1 where id <=> null; +id id2 +NULL 0 +select * from t1 where id <=> null or id > 0; +id id2 +NULL 0 +1 1 +select * from t1 where id is null or id > 0; +id id2 +NULL 0 +1 1 +select * from t1 where id2 <=> null or id2 > 0; +id id2 +1 1 +select * from t1 where id2 is null or id2 > 0; +id id2 +1 1 +delete from t1 where id <=> NULL; +select * from t1; +id id2 +1 1 +drop table t1; |