1
-- source include/have_innodb.inc
4
drop table if exists t1;
7
connect (con1,localhost,root,,);
8
connect (con2,localhost,root,,);
11
### - While a consistent snapshot transaction is executed,
12
### no external inserts should be visible to the transaction.
15
create table t1 (a int) engine=innodb;
16
start transaction with consistent snapshot;
19
insert into t1 values(1);
22
select * from t1; # if consistent snapshot was set as expected, we
27
### - For any non-consistent snapshot transaction, external
28
### committed inserts should be visible to the transaction.
31
start transaction; # Now we omit WITH CONSISTENT SNAPSHOT
34
insert into t1 values(1);
37
select * from t1; # if consistent snapshot was not set, as expected, we