summaryrefslogtreecommitdiff
path: root/mysql-test/t/bdb.test
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2004-06-29 13:49:50 +0500
committerunknown <ram@gw.mysql.r18.ru>2004-06-29 13:49:50 +0500
commitf9b7537eb6bf336df71893e5d7cdaeb645a04eac (patch)
tree8ca0126a14b1c813870c3fb45d1380748b45f63c /mysql-test/t/bdb.test
parent69d661724b5d765270c20f0de2ee3b004c7380ec (diff)
downloadmariadb-git-f9b7537eb6bf336df71893e5d7cdaeb645a04eac.tar.gz
a fix (bug #4304: TRUNCATE <table of type BDB> , wrong result).
Diffstat (limited to 'mysql-test/t/bdb.test')
-rw-r--r--mysql-test/t/bdb.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/bdb.test b/mysql-test/t/bdb.test
index 42729034d41..de156cc2305 100644
--- a/mysql-test/t/bdb.test
+++ b/mysql-test/t/bdb.test
@@ -850,3 +850,14 @@ insert into t2 (a, b)
select a, b from t1 where (a, b) in (select a, b from t1);
select * from t2;
drop table t1, t2;
+
+#
+# Bug #4304: TRUNCATE <table of type BDB> , wrong result
+#
+
+create table t1 (a int, b varchar(30), primary key(a)) engine = bdb;
+insert into t1 values (1,'one');
+commit;
+truncate t1;
+select * from t1;
+drop table t1;