summaryrefslogtreecommitdiff
path: root/mysql-test/t/bdb.test
diff options
context:
space:
mode:
authortim@donna.mysql.com <>2001-01-13 16:12:45 +0200
committertim@donna.mysql.com <>2001-01-13 16:12:45 +0200
commitb9eaaf17b93e77fb90a344a5fa58f21d25d9a03e (patch)
treed003b3e7612fa4a0553d59db4fc2790f2edb4a4d /mysql-test/t/bdb.test
parent6295e1b1954dcd1b35024586fc7bfd00005f39ac (diff)
downloadmariadb-git-b9eaaf17b93e77fb90a344a5fa58f21d25d9a03e.tar.gz
Add bdb_version variable, and a new test.
Diffstat (limited to 'mysql-test/t/bdb.test')
-rw-r--r--mysql-test/t/bdb.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/bdb.test b/mysql-test/t/bdb.test
index 370e10e7afa..48fd2736284 100644
--- a/mysql-test/t/bdb.test
+++ b/mysql-test/t/bdb.test
@@ -334,3 +334,13 @@ CREATE TABLE t1 (a int not null, primary key (a)) type=bdb;
insert into t1 values(1),(2),(3);
select t1.a from t1 natural join t1 as t2 order by t1.a;
drop table t1;
+
+#
+# Test key on blob with null values
+#
+create table t1 (b blob, i int, key (b(100)), key (i), key (i, b(20)));
+insert into t1 values ('this is a blob', 1), (null, -1), (null, null);
+select b from t1 where b = 'this is a blob';
+select * from t1 where b like 't%';
+select b, i from t1 where b is not null;
+select * from t1 where b is null and i > 0;