blob: 24221f85f759c0f8f0581e5062beaeb446abc82f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
source include/have_tokudb.inc;
disable_warnings;
drop table if exists t;
enable_warnings;
set default_storage_engine='tokudb';
create table t (id bigint primary key, b bigint not null default 0);
insert into t (id) values (1),(2);
connect (conn1,localhost,root,,);
connection default;
begin;
update noar t set b=b+1 where id=1;
connection conn1;
begin;
update noar t set b=b-1 where id=2;
connection default;
send update noar t set b=b+1 where id=2;
connection conn1;
sleep 1;
error 1205,1213;
update noar t set b=b-1 where id=1;
rollback;
connection default;
reap;
commit;
connection default;
disconnect conn1;
select * from t;
drop table t;
|