~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1;
2
 
SET @orig_lock_wait_timeout= @@innodb_lock_wait_timeout;
3
 
SET GLOBAL innodb_lock_wait_timeout=2;
4
2
set session transaction isolation level read committed;
5
 
create table t1(a int not null) engine=innodb;
 
3
create table t1(a int not null) engine=innodb DEFAULT CHARSET=latin1;
6
4
insert into t1 values (1),(2),(3),(4),(5),(6),(7);
7
5
set autocommit=0;
8
6
select * from t1 where a=3 lock in share mode;
11
9
set session transaction isolation level read committed;
12
10
set autocommit=0;
13
11
update t1 set a=10 where a=5;
 
12
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
14
13
commit;
15
14
update t1 set a=10 where a=5;
16
15
select * from t1 where a=2 for update;
22
21
update t1 set a=12 where a=2;
23
22
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
24
23
update t1 set a=13 where a=1;
 
24
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
25
25
commit;
26
26
update t1 set a=14 where a=1;
27
27
commit;
28
28
select * from t1;
29
29
a
30
 
13
 
30
14
31
31
2
32
32
3
33
33
4
35
35
11
36
36
7
37
37
drop table t1;
38
 
SET GLOBAL innodb_lock_wait_timeout=@orig_lock_wait_timeout ;