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);
10 connect (addconroot, localhost, root,,);
11 connection addconroot;
12 set session transaction isolation level read committed;
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;
27 connection addconroot;
28 update innodb_bug52663 set count = count + 1 where what = 'total' and id = 0;
30 select * from innodb_bug52663;
33 select * from innodb_bug52663;
34 drop table innodb_bug52663;