summaryrefslogtreecommitdiff
path: root/storage/tokudb/mysql-test/tokudb/r/nested_txn_implicit_commit.result
blob: ac1a13d55237c674aaad934c1d9a8f35db3abb5b (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
SET DEFAULT_STORAGE_ENGINE='TokuDB';
DROP TABLE IF EXISTS t1, t2;
create table t1 (a int, b int, primary key (a));
begin;
insert into t1 values (1,10), (2,20);
create table t2 (a int);
rollback;
select * from t1;
a	b
1	10
2	20
delete from t1;
begin;
insert into t1 values (1,10),(2,20);
select * from t1;
a	b
1	10
2	20
alter table t1 add index (b);
rollback;
select * From t1;
a	b
1	10
2	20
begin;
insert into t1 values (3,30);
lock tables t1 write;
rollback;
select * from t1;
a	b
1	10
2	20
3	30
unlock tables;
lock tables t1 write;
insert into t1 values (4,40);
select * From t1;
a	b
1	10
2	20
3	30
4	40
rollback;
select * from t1;
a	b
1	10
2	20
3	30
4	40
insert into t2 values (1);
ERROR HY000: Table 't2' was not locked with LOCK TABLES
commit;
insert into t2 values (1);
ERROR HY000: Table 't2' was not locked with LOCK TABLES
unlock tables;
insert into t2 values (1);
select * from t1;
a	b
1	10
2	20
3	30
4	40
select * from t2;
a
1
lock tables t1 write;
insert into t1 values (5,50);
begin;
insert into t2 values (2);
select * from t1;
a	b
1	10
2	20
3	30
4	40
5	50
select * from t2;
a
1
2
rollback;
select * from t1;
a	b
1	10
2	20
3	30
4	40
5	50
select * from t2;
a
1
drop table t1,t2;