diff options
author | unknown <ingo@mysql.com> | 2004-06-25 12:59:47 +0200 |
---|---|---|
committer | unknown <ingo@mysql.com> | 2004-06-25 12:59:47 +0200 |
commit | fb987c8907c55d974b189ccd5e9c891f8dee7a14 (patch) | |
tree | 1d74a4c02a5562fbb2989c5a7d17269c1f40161d /mysql-test/t/bdb.test | |
parent | 098a1e3afa7a911c39dca37bad084f6c171f7c44 (diff) | |
parent | afe29967e03d5c936c378fff9ea4e4bcf7e9251e (diff) | |
download | mariadb-git-fb987c8907c55d974b189ccd5e9c891f8dee7a14.tar.gz |
Merge
sql/ha_berkeley.cc:
Auto merged
mysql-test/r/bdb.result:
SCCS merged
mysql-test/t/bdb.test:
SCCS merged
Diffstat (limited to 'mysql-test/t/bdb.test')
-rw-r--r-- | mysql-test/t/bdb.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/t/bdb.test b/mysql-test/t/bdb.test index bed0cbe269d..1e6d7035989 100644 --- a/mysql-test/t/bdb.test +++ b/mysql-test/t/bdb.test @@ -831,6 +831,25 @@ select a from t1; drop table t1; # +# bug#2686 - index_merge select on BerkeleyDB table with varchar PK causes mysqld to crash +# + +create table t1( + pk1 text not null, pk2 text not null, pk3 char(4), + key1 int, key2 int, + primary key(pk1(4), pk2(4), pk3), key(key1), key(key2) +) engine=bdb; +insert into t1 values (concat('aaa-', repeat('A', 4000)), + concat('eee-', repeat('e', 4000)), 'a++a', 1, 1); +insert into t1 values (concat('bbb-', repeat('B', 4000)), + concat('ggg-', repeat('G', 4000)), 'b++b', 1, 1); +select substring(pk1, 1, 4), substring(pk1, 4001), + substring(pk2, 1, 4), substring(pk2, 4001), pk3, key1, key2 + from t1 force index(key1, key2) where key1 < 3 or key2 < 3; +drop table t1; + + +# # bug#2688 - Wrong index_merge query results for BDB table with variable length primary key # |