~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-security

« back to all changes in this revision

Viewing changes to mysql-test/suite/innodb/r/innodb-semi-consistent.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 22:33:55 UTC
  • mto: (1.2.1) (37.1.1 lucid-security)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: package-import@ubuntu.com-20120222223355-ku1tb4r70osci6v2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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;
 
8
a
 
9
3
 
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;
 
21
a
 
22
2
 
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;
 
32
a
 
33
14
 
34
2
 
35
3
 
36
4
 
37
10
 
38
11
 
39
7
 
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;