~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/innodb-semi-consistent.test

  • Committer: Brian Aker
  • Date: 2009-07-01 02:41:00 UTC
  • mfrom: (1081.1.4 mordred)
  • Revision ID: brian@gaz-20090701024100-nefdy7pnychzpg7h
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
connect (b,localhost,root,,);
11
11
connection a;
12
12
set session transaction isolation level read committed;
13
 
create table t1(a int not null) engine=innodb DEFAULT CHARSET=latin1;
 
13
create table t1(a int not null) engine=innodb;
14
14
insert into t1 values (1),(2),(3),(4),(5),(6),(7);
15
15
set autocommit=0;
16
 
# this should lock the entire table
 
16
# we have locks_unsafe_for_binlog on by default. this should work.
17
17
select * from t1 where a=3 lock in share mode;
18
18
connection b;
19
19
set session transaction isolation level read committed;
20
20
set autocommit=0;
21
21
update t1 set a=10 where a=5;
22
22
connection a;
23
23
commit;
33
32
update t1 set a=11 where a=6;
34
33
-- error ER_LOCK_WAIT_TIMEOUT
35
34
update t1 set a=12 where a=2;
36
35
update t1 set a=13 where a=1;
37
36
connection a;
38
37
commit;