mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / innodb_plugin / t / innodb_bug52663.test
blob927044fb2caa09f55b4d8d4057905b93e756599f
1 --source include/have_innodb_plugin.inc
3 set session transaction isolation level read committed;
5 create table innodb_bug52663 (what varchar(5), id integer, count integer, primary key
6 (what, id)) engine=innodb;
7 insert into innodb_bug52663 values ('total', 0, 0);
8 begin;
10 connect (addconroot, localhost, root,,);
11 connection addconroot;
12 set session transaction isolation level read committed;
13 begin;
15 connection default;
16 update innodb_bug52663 set count = count + 1 where what = 'total' and id = 0;
17 select * from innodb_bug52663;
19 connection addconroot;
20 --error ER_LOCK_WAIT_TIMEOUT
21 update innodb_bug52663 set count = count + 1 where what = 'total' and id = 0;
22 select * from innodb_bug52663;
24 connection default;
25 commit;
27 connection addconroot;
28 update innodb_bug52663 set count = count + 1 where what = 'total' and id = 0;
29 commit;
30 select * from innodb_bug52663;
32 connection default;
33 select * from innodb_bug52663;
34 drop table innodb_bug52663;