2 # Bug #24200: Provide backwards compatibility mode for 4.x "rollback on
6 drop
table if exists t1;
9 show variables like
'innodb_rollback_on_timeout';
10 create
table t1 (a
int unsigned not null primary key) engine = innodb;
11 insert into t1 values (1);
13 connect (con1,localhost,root,,);
14 connect (con2,localhost,root,,);
18 insert into t1 values (2);
23 insert into t1 values (5);
25 # Lock wait timeout set to 2 seconds in <THIS TEST>-master.opt; this
26 # statement will time out; in 5.0.13+, it will not roll back transaction.
27 --error ER_LOCK_WAIT_TIMEOUT
28 insert into t1 values (2);
29 # On 5.0.13+, this should give ==> 1, 5