mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 23:34:34 +01:00
b882892cea
git-svn-id: file:///svn/mysql/tests/mysql-test@32094 c7de825b-a66e-492c-adef-691d508d4ae1
22 lines
459 B
Text
22 lines
459 B
Text
set 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 repeatable read;
|
|
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 repeatable read;
|
|
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;
|