summaryrefslogtreecommitdiff
path: root/storage/tokudb/mysql-test/tokudb/r/mvcc-27.result
blob: 5f7ee55513012c170d108ae86a5226706f89374e (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
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
# Establish connection conn1 (user = root)
DROP TABLE IF EXISTS foo;
create table foo (a int, b varchar(100), primary key (a))engine=TokudB;
# should return nothing
select * from foo;
a	b
begin;
set session transaction isolation level repeatable read;
select * from foo;
a	b
replace into foo values (1,"G");
replace into foo values (1,"GA");
replace into foo values (1,"GAR");
replace into foo values (1,"GARB");
replace into foo values (1,"GARBA");
replace into foo values (1,"GARBAG");
replace into foo values (1,"GARBAGE");
replace into foo values (1,"a");
# should return one element, 
select * from foo;
a	b
1	a
optimize table foo;
Table	Op	Msg_type	Msg_text
test.foo	optimize	status	OK
# should return nothing
select * from foo;
a	b
commit;
# should return one element, 
select * from foo;
a	b
1	a
set session transaction isolation level serializable;
DROP TABLE foo;