From 22a5241f2836c3c9217bd59d6658259486e7fd27 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 24 Jul 2001 12:23:17 -0400 Subject: 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. --- mysql-test/r/bdb.result | 2 ++ mysql-test/t/bdb.test | 7 +++++++ 2 files changed, 9 insertions(+) (limited to 'mysql-test') 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 # -- cgit v1.2.1