summaryrefslogtreecommitdiff
path: root/mysql-test/t/bdb-crash.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/bdb-crash.test')
-rw-r--r--mysql-test/t/bdb-crash.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/bdb-crash.test b/mysql-test/t/bdb-crash.test
index 4575a612728..a966ea4659d 100644
--- a/mysql-test/t/bdb-crash.test
+++ b/mysql-test/t/bdb-crash.test
@@ -34,3 +34,15 @@ INSERT INTO t1
VALUES(NULL,1,'2001-03-01',1,1,1,'New',NULL,NULL,'now');
select * from t1;
drop table t1;
+
+#
+# Test for bug #2342 "Running ANALYZE TABLE on bdb table
+# inside a transaction hangs server thread"
+#
+
+create table t1 (a int) engine=bdb;
+
+set autocommit=0;
+insert into t1 values(1);
+analyze table t1;
+drop table t1; \ No newline at end of file