diff options
author | unknown <mskold@mysql.com> | 2004-08-31 10:19:10 +0200 |
---|---|---|
committer | unknown <mskold@mysql.com> | 2004-08-31 10:19:10 +0200 |
commit | c52a30b5dfc80341567a2e286c554fc35964cae9 (patch) | |
tree | 21913d37dde16a0be3ad58b3b6405223d2ee0b23 /mysql-test/r/ndb_index_ordered.result | |
parent | 2e86cdb17918e13aca61ea116f9a9ee4c0b6e1ed (diff) | |
download | mariadb-git-c52a30b5dfc80341567a2e286c554fc35964cae9.tar.gz |
Enabled HA_NULL_IN_KEY support
Diffstat (limited to 'mysql-test/r/ndb_index_ordered.result')
-rw-r--r-- | mysql-test/r/ndb_index_ordered.result | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/mysql-test/r/ndb_index_ordered.result b/mysql-test/r/ndb_index_ordered.result index 1441e53e935..2f1ad251e40 100644 --- a/mysql-test/r/ndb_index_ordered.result +++ b/mysql-test/r/ndb_index_ordered.result @@ -212,3 +212,48 @@ select count(*) from t1 where b = 1; count(*) 1 drop table t1; +CREATE TABLE t1 ( +a int unsigned NOT NULL PRIMARY KEY, +b int unsigned, +c int unsigned, +KEY bc(b,c) +) engine = ndb; +insert into t1 values(1,1,1),(2,NULL,2),(3,NULL,NULL),(4,4,NULL); +select * from t1 use index (bc) where b IS NULL; +a b c +3 NULL NULL +2 NULL 2 +select * from t1 use index (bc)order by a; +a b c +1 1 1 +2 NULL 2 +3 NULL NULL +4 4 NULL +select * from t1 use index (bc) order by a; +a b c +1 1 1 +2 NULL 2 +3 NULL NULL +4 4 NULL +select * from t1 use index (PRIMARY) where b IS NULL order by a; +a b c +2 NULL 2 +3 NULL NULL +select * from t1 use index (bc) where b IS NULL order by a; +a b c +2 NULL 2 +3 NULL NULL +select * from t1 use index (bc) where b IS NULL and c IS NULL order by a; +a b c +3 NULL NULL +select * from t1 use index (bc) where b IS NULL and c = 2 order by a; +a b c +2 NULL 2 +select * from t1 use index (bc) where b < 4 order by a; +a b c +1 1 1 +select * from t1 use index (bc) where b IS NOT NULL order by a; +a b c +1 1 1 +4 4 NULL +drop table t1; |