diff options
author | tsmith/tim@siva.hindu.god <> | 2006-12-20 15:46:36 -0700 |
---|---|---|
committer | tsmith/tim@siva.hindu.god <> | 2006-12-20 15:46:36 -0700 |
commit | ab4c0f3b81e3e2a9eea5aa91b9abad8f42683fad (patch) | |
tree | 878691cbdebcb4f4b99aac2feed2af315483ee93 /mysql-test/include | |
parent | aee48b346fcc5d4c16cc5a134ddd5f3279b7df2e (diff) | |
parent | 90fc044fc2b604a6679da0730c8955e1ea81ae9a (diff) | |
download | mariadb-git-ab4c0f3b81e3e2a9eea5aa91b9abad8f42683fad.tar.gz |
Merge siva.hindu.god:/usr/home/tim/m/bk/50-build
into siva.hindu.god:/usr/home/tim/m/bk/51-build
Diffstat (limited to 'mysql-test/include')
-rw-r--r-- | mysql-test/include/innodb_rollback_on_timeout.inc | 37 | ||||
-rw-r--r-- | mysql-test/include/mix1.inc | 2 |
2 files changed, 39 insertions, 0 deletions
diff --git a/mysql-test/include/innodb_rollback_on_timeout.inc b/mysql-test/include/innodb_rollback_on_timeout.inc new file mode 100644 index 00000000000..73c7374c79e --- /dev/null +++ b/mysql-test/include/innodb_rollback_on_timeout.inc @@ -0,0 +1,37 @@ +# +# Bug #24200: Provide backwards compatibility mode for 4.x "rollback on +# transaction timeout" +# +show variables like 'innodb_rollback_on_timeout'; +create table t1 (a int unsigned not null primary key) engine = innodb; +insert into t1 values (1); +commit; +connect (con1,localhost,root,,); +connect (con2,localhost,root,,); + +connection con2; +begin work; +insert into t1 values (2); +select * from t1; + +connection con1; +begin work; +insert into t1 values (5); +select * from t1; +# Lock wait timeout set to 2 seconds in <THIS TEST>-master.opt; this +# statement will time out; in 5.0.13+, it will not roll back transaction. +--error ER_LOCK_WAIT_TIMEOUT +insert into t1 values (2); +# On 5.0.13+, this should give ==> 1, 5 +select * from t1; +commit; + +connection con2; +select * from t1; +commit; + +connection default; +select * from t1; +drop table t1; +disconnect con1; +disconnect con2; diff --git a/mysql-test/include/mix1.inc b/mysql-test/include/mix1.inc index 7fe369cfb1e..9619db2203c 100644 --- a/mysql-test/include/mix1.inc +++ b/mysql-test/include/mix1.inc @@ -462,6 +462,8 @@ EXPLAIN SELECT b, SUM(c) FROM t1 GROUP BY b; EXPLAIN SELECT SQL_BIG_RESULT b, SUM(c) FROM t1 GROUP BY b; DROP TABLE t1; +--source include/innodb_rollback_on_timeout.inc + --echo End of 5.0 tests |