summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorunknown <ingo@mysql.com>2004-06-25 14:44:37 +0200
committerunknown <ingo@mysql.com>2004-06-25 14:44:37 +0200
commitf1257b3f915949a836224a810b1973bfa13beeb9 (patch)
tree6d0e12ffaf9e7fc190cab4a67d9c64cfa69163b9 /mysql-test/r
parent0f42f82d2d8af2a646396abe44dcb0caffb4d6c3 (diff)
parentfb987c8907c55d974b189ccd5e9c891f8dee7a14 (diff)
downloadmariadb-git-f1257b3f915949a836224a810b1973bfa13beeb9.tar.gz
Merge mysql.com:/home/mydev/mysql-4.0
into mysql.com:/home/mydev/mysql-4.0-bug2686
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/bdb.result16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/bdb.result b/mysql-test/r/bdb.result
index 7d4b42e6a8c..684efc3ef1b 100644
--- a/mysql-test/r/bdb.result
+++ b/mysql-test/r/bdb.result
@@ -1190,6 +1190,22 @@ a
A
a
drop table t1;
+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;
+substring(pk1, 1, 4) substring(pk1, 4001) substring(pk2, 1, 4) substring(pk2, 4001) pk3 key1 key2
+aaa- AAAA eee- eeee a++a 1 1
+bbb- BBBB ggg- GGGG b++b 1 1
+drop table t1;
create table t1 (
pk1 varchar(8) not null default '',
pk2 varchar(4) not null default '',