1
-- source include/have_innodb_plugin.inc
3
# Bug #49164 READ-COMMITTED reports "matched: 0" on compound PK
5
# Bug #52663 Lost update incrementing column value under READ COMMITTED
7
connect (con1,localhost,root,,);
8
connect (con2,localhost,root,,);
11
SET tx_isolation = 'READ-COMMITTED';
13
CREATE TABLE bug49164 (a INT, b BIGINT, c TINYINT, PRIMARY KEY (a, b))
16
insert into bug49164 values (1,1,1), (2,2,2), (3,3,3);
19
update bug49164 set c=7;
20
select * from bug49164;
22
select * from bug49164;
24
update bug49164 set c=7;
28
SET tx_isolation = 'READ-COMMITTED';
30
select * from bug49164;
34
update bug49164 set c=6 where a=1 and b=1;
38
select * from bug49164;
43
select * from bug49164;