~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-05-22 08:59:41 UTC
  • mto: (2.1.3 sid) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100522085941-4x62clk1ovyip4m5
Tags: upstream-5.1.47
ImportĀ upstreamĀ versionĀ 5.1.47

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;