mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / innodb_plugin / r / innodb-semi-consistent.result
blobca0e362ef8008a76f621c87a337714ccdf50f623
1 drop table if exists t1;
2 set binlog_format=mixed;
3 set session transaction isolation level repeatable read;
4 create table t1(a int not null) engine=innodb DEFAULT CHARSET=latin1;
5 insert into t1 values (1),(2),(3),(4),(5),(6),(7);
6 set autocommit=0;
7 select * from t1 where a=3 lock in share mode;
10 set binlog_format=mixed;
11 set session transaction isolation level repeatable read;
12 set autocommit=0;
13 update t1 set a=10 where a=5;
14 ERROR HY000: Lock wait timeout exceeded; try restarting transaction
15 commit;
16 set session transaction isolation level read committed;
17 update t1 set a=10 where a=5;
18 select * from t1 where a=2 for update;
19 ERROR HY000: Lock wait timeout exceeded; try restarting transaction
20 select * from t1 where a=2 limit 1 for update;
23 update t1 set a=11 where a=6;
24 update t1 set a=12 where a=2;
25 ERROR HY000: Lock wait timeout exceeded; try restarting transaction
26 update t1 set a=13 where a=1;
27 ERROR HY000: Lock wait timeout exceeded; try restarting transaction
28 commit;
29 update t1 set a=14 where a=1;
30 commit;
31 select * from t1;
40 drop table t1;
41 create table t1 (a int, b int) engine=myisam;
42 create table t2 (c int, d int, key (c)) engine=innodb;
43 insert into t1 values (1,1);
44 insert into t2 values (1,2);
45 set session transaction isolation level read committed;
46 delete from t1 using t1 join t2 on t1.a = t2.c where t2.d in (1);
47 drop table t1, t2;