summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <tim@white.box>2001-07-24 12:23:17 -0400
committerunknown <tim@white.box>2001-07-24 12:23:17 -0400
commit36639173d807ba1c1aecfcfc9d243266eba9c6bc (patch)
tree18791d54d6f1fcaf0985132031e33fa532ba0954 /mysql-test
parentf49c76c99946bfd703dec6037ba9d4eb3f7f6910 (diff)
downloadmariadb-git-36639173d807ba1c1aecfcfc9d243266eba9c6bc.tar.gz
Add test case for update/replace bug in bdb.
Remove unused argument to ha_berkeley::remove_key(). mysql-test/r/bdb.result: Add test case for update/replace bug in bdb. BitKeeper/etc/ignore: Added .gdbinit .vimrc to the ignore list mysql-test/t/bdb.test: Add test case for update/replace bug in bdb. sql/ha_berkeley.cc: The packed_record argument to ha_berkeley::remove_key() was never used; remove it. sql/ha_berkeley.h: The packed_record argument to ha_berkeley::remove_key() was never used; remove it.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/bdb.result2
-rw-r--r--mysql-test/t/bdb.test7
2 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/r/bdb.result b/mysql-test/r/bdb.result
index 89d9c56b3b0..39b4962ef58 100644
--- a/mysql-test/r/bdb.result
+++ b/mysql-test/r/bdb.result
@@ -139,6 +139,8 @@ t1 1 level 1 level A 3 NULL NULL
gesuchnr benutzer_id
1 1
2 1
+id x
+1 2
Table Op Msg_type Msg_text
test.t1 optimize status OK
a
diff --git a/mysql-test/t/bdb.test b/mysql-test/t/bdb.test
index ed167d8d005..7976b482100 100644
--- a/mysql-test/t/bdb.test
+++ b/mysql-test/t/bdb.test
@@ -65,6 +65,13 @@ replace into t1 (gesuchnr,benutzer_id) values (1,1);
select * from t1;
drop table t1;
+# test for bug in replace with secondary key
+create table t1 (id int not null primary key, x int not null, key (x)) type=bdb;
+insert into t1 (id, x) values (1, 1);
+replace into t1 (id, x) values (1, 2);
+select * from t1;
+drop table t1;
+
#
# test delete using hidden_primary_key
#