1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Add bdb_version variable, and a new test.

mysql-test/r/bdb.result:
  Test key on blob containing null values.
mysql-test/t/bdb.test:
  Test key on blob containing null values.
sql/mysqld.cc:
  Add bdb_version variable
BitKeeper/etc/logging_ok:
  Logging to logging@openlogging.org accepted
This commit is contained in:
unknown
2001-01-13 16:12:45 +02:00
parent 686faae582
commit 4d1bb5adc5
4 changed files with 19 additions and 0 deletions

View File

@@ -406,3 +406,10 @@ a
1
2
3
b
this is a blob
b i
this is a blob 1
b i
this is a blob 1
b i

View File

@@ -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;