summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <vva@eagle.mysql.r18.ru>2004-03-27 00:41:48 +0400
committerunknown <vva@eagle.mysql.r18.ru>2004-03-27 00:41:48 +0400
commit2e3950b20d26008092a6035d966e58249de8bd02 (patch)
tree9dc38024e45a0287391232b050a0e2bce662c77c /mysql-test
parent10d802881cf877c68cdc7fe7afb87d4b4805581e (diff)
parentaab1e50e719f1f31629890fad650e9b0290cb906 (diff)
downloadmariadb-git-2e3950b20d26008092a6035d966e58249de8bd02.tar.gz
Merge vvagin@bk-internal.mysql.com:/home/bk/mysql-4.0
into eagle.mysql.r18.ru:/home/vva/work/BUG_2342/mysql-4.0
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/bdb-crash.result7
-rw-r--r--mysql-test/t/bdb-crash.test12
2 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/r/bdb-crash.result b/mysql-test/r/bdb-crash.result
index 5079368ea21..16e51c61504 100644
--- a/mysql-test/r/bdb-crash.result
+++ b/mysql-test/r/bdb-crash.result
@@ -30,3 +30,10 @@ ChargeID ServiceID ChargeDate ChargeAmount FedTaxes ProvTaxes ChargeStatus Charg
1 1 2001-03-01 1.00 1.00 1.00 New blablabla NULL now
2 1 2001-03-01 1.00 1.00 1.00 New NULL NULL now
drop table t1;
+create table t1 (a int) engine=bdb;
+set autocommit=0;
+insert into t1 values(1);
+analyze table t1;
+Table Op Msg_type Msg_text
+test.t1 analyze status Operation need committed state
+drop table t1;
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