summaryrefslogtreecommitdiff
path: root/mysql-test/t/bdb.test
diff options
context:
space:
mode:
authortim@white.box <>2001-07-24 12:23:17 -0400
committertim@white.box <>2001-07-24 12:23:17 -0400
commit2b6776d3374ffb4a48b81a84865f3fe854d2c7bf (patch)
tree18791d54d6f1fcaf0985132031e33fa532ba0954 /mysql-test/t/bdb.test
parentc61f04b00504d6bf72316fda099c76b643b80ae6 (diff)
downloadmariadb-git-2b6776d3374ffb4a48b81a84865f3fe854d2c7bf.tar.gz
Add test case for update/replace bug in bdb.
Remove unused argument to ha_berkeley::remove_key().
Diffstat (limited to 'mysql-test/t/bdb.test')
-rw-r--r--mysql-test/t/bdb.test7
1 files changed, 7 insertions, 0 deletions
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
#