summaryrefslogtreecommitdiff
path: root/mysql-test/suite/tokudb/r/locks-select-update-2.result
blob: cea6121466908d46f948423cb0f6d2ad7e8e3455 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SET DEFAULT_STORAGE_ENGINE='tokudb';
drop table if exists t;
create table t (a int primary key, b int);
insert into t values (1,0);
set session transaction isolation level serializable;
begin;
select * from t where a=1 for update;
a	b
1	0
update t set b=b+1 where a=1;
set session transaction isolation level serializable;
begin;
select * from t where a=1 for update;
commit;
a	b
1	1
update t set b=b+1 where a=1;
select * from t;
a	b
1	2
commit;
drop table t;