Commit 05f08c18 authored by unknown's avatar unknown

Added check to isolation test if Gemini is used


mysql-test/t/isolation.test:
  Added check if Gemini is used
  Removed 'use test'
parent 522724bb
source include/have_gemini.inc
source include/master-slave.inc; source include/master-slave.inc;
connection master; connection master;
use test;
drop table if exists t1; drop table if exists t1;
create table t1 (f1 char(20) not null) type = gemini; create table t1 (f1 char(20) not null) type = gemini;
set autocommit=0; set autocommit=0;
insert into t1 (f1) values ("test1"), ("bar"); insert into t1 (f1) values ("test1"), ("bar");
connection master1; connection master1;
use test;
!$1030 select * from t1; !$1030 select * from t1;
connection master; connection master;
commit; commit;
...@@ -16,7 +15,6 @@ drop table if exists t1; ...@@ -16,7 +15,6 @@ drop table if exists t1;
create table t1 (f1 char(20) not null) type = gemini; create table t1 (f1 char(20) not null) type = gemini;
insert into t1 (f1) values ("test2"), ("bar"); insert into t1 (f1) values ("test2"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level serializable; set transaction isolation level serializable;
!$-1217 select * from t1; !$-1217 select * from t1;
connection master; connection master;
...@@ -26,7 +24,6 @@ drop table if exists t1; ...@@ -26,7 +24,6 @@ drop table if exists t1;
create table t1 (f1 char(20) not null) type = gemini; create table t1 (f1 char(20) not null) type = gemini;
insert into t1 (f1) values ("test3"), ("bar"); insert into t1 (f1) values ("test3"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level read uncommitted; set transaction isolation level read uncommitted;
select * from t1; select * from t1;
connection master; connection master;
...@@ -35,7 +32,6 @@ commit; ...@@ -35,7 +32,6 @@ commit;
drop table if exists t1; drop table if exists t1;
create table t1 (f1 char(20) not null) type = gemini; create table t1 (f1 char(20) not null) type = gemini;
connection master1; connection master1;
use test;
set transaction isolation level read committed; set transaction isolation level read committed;
select * from t1; select * from t1;
connection master; connection master;
...@@ -45,7 +41,6 @@ drop table if exists t1; ...@@ -45,7 +41,6 @@ drop table if exists t1;
create table t1 (f1 char(20) not null) type = gemini; create table t1 (f1 char(20) not null) type = gemini;
insert into t1 (f1) values ("test4"), ("bar"); insert into t1 (f1) values ("test4"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level repeatable read; set transaction isolation level repeatable read;
select * from t1; select * from t1;
connection master; connection master;
...@@ -56,7 +51,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -56,7 +51,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level serializable; set transaction isolation level serializable;
insert into t1 (f1) values ("test5"), ("bar"); insert into t1 (f1) values ("test5"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level serializable; set transaction isolation level serializable;
select * from t1; select * from t1;
connection master; connection master;
...@@ -67,7 +61,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -67,7 +61,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level serializable; set transaction isolation level serializable;
insert into t1 (f1) values ("test6"), ("bar"); insert into t1 (f1) values ("test6"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level read uncommitted; set transaction isolation level read uncommitted;
select * from t1; select * from t1;
connection master; connection master;
...@@ -78,7 +71,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -78,7 +71,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level serializable; set transaction isolation level serializable;
insert into t1 (f1) values ("test7"), ("bar"); insert into t1 (f1) values ("test7"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level read committed; set transaction isolation level read committed;
select * from t1; select * from t1;
connection master; connection master;
...@@ -89,7 +81,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -89,7 +81,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level serializable; set transaction isolation level serializable;
insert into t1 (f1) values ("test8"), ("bar"); insert into t1 (f1) values ("test8"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level repeatable read; set transaction isolation level repeatable read;
select * from t1; select * from t1;
connection master; connection master;
...@@ -100,7 +91,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -100,7 +91,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level read uncommitted; set transaction isolation level read uncommitted;
insert into t1 (f1) values ("test9"), ("bar"); insert into t1 (f1) values ("test9"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level serializable; set transaction isolation level serializable;
select * from t1; select * from t1;
connection master; connection master;
...@@ -111,7 +101,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -111,7 +101,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level read uncommitted; set transaction isolation level read uncommitted;
insert into t1 (f1) values ("test10"), ("bar"); insert into t1 (f1) values ("test10"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level read uncommitted; set transaction isolation level read uncommitted;
select * from t1; select * from t1;
connection master; connection master;
...@@ -122,7 +111,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -122,7 +111,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level read uncommitted; set transaction isolation level read uncommitted;
insert into t1 (f1) values ("test11"), ("bar"); insert into t1 (f1) values ("test11"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level read committed; set transaction isolation level read committed;
select * from t1; select * from t1;
connection master; connection master;
...@@ -133,7 +121,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -133,7 +121,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level read uncommitted; set transaction isolation level read uncommitted;
insert into t1 (f1) values ("test12"), ("bar"); insert into t1 (f1) values ("test12"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level repeatable read; set transaction isolation level repeatable read;
select * from t1; select * from t1;
connection master; connection master;
...@@ -144,7 +131,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -144,7 +131,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level read committed; set transaction isolation level read committed;
insert into t1 (f1) values ("test13"), ("bar"); insert into t1 (f1) values ("test13"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level serializable; set transaction isolation level serializable;
select * from t1; select * from t1;
connection master; connection master;
...@@ -155,7 +141,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -155,7 +141,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level read committed; set transaction isolation level read committed;
insert into t1 (f1) values ("test14"), ("bar"); insert into t1 (f1) values ("test14"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level read uncommitted; set transaction isolation level read uncommitted;
select * from t1; select * from t1;
connection master; connection master;
...@@ -166,7 +151,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -166,7 +151,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level read committed; set transaction isolation level read committed;
insert into t1 (f1) values ("test15"), ("bar"); insert into t1 (f1) values ("test15"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level read committed; set transaction isolation level read committed;
select * from t1; select * from t1;
connection master; connection master;
...@@ -177,7 +161,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -177,7 +161,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level read committed; set transaction isolation level read committed;
insert into t1 (f1) values ("test16"), ("bar"); insert into t1 (f1) values ("test16"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level repeatable read; set transaction isolation level repeatable read;
select * from t1; select * from t1;
connection master; connection master;
...@@ -188,7 +171,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -188,7 +171,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level repeatable read; set transaction isolation level repeatable read;
insert into t1 (f1) values ("test17"), ("bar"); insert into t1 (f1) values ("test17"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level serializable; set transaction isolation level serializable;
select * from t1; select * from t1;
connection master; connection master;
...@@ -199,7 +181,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -199,7 +181,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level repeatable read; set transaction isolation level repeatable read;
insert into t1 (f1) values ("test18"), ("bar"); insert into t1 (f1) values ("test18"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level read uncommitted; set transaction isolation level read uncommitted;
select * from t1; select * from t1;
connection master; connection master;
...@@ -210,7 +191,6 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -210,7 +191,6 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level repeatable read; set transaction isolation level repeatable read;
insert into t1 (f1) values ("test19"), ("bar"); insert into t1 (f1) values ("test19"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level read committed; set transaction isolation level read committed;
select * from t1; select * from t1;
connection master; connection master;
...@@ -221,9 +201,8 @@ create table t1 (f1 char(20) not null) type = gemini; ...@@ -221,9 +201,8 @@ create table t1 (f1 char(20) not null) type = gemini;
set transaction isolation level repeatable read; set transaction isolation level repeatable read;
insert into t1 (f1) values ("test20"), ("bar"); insert into t1 (f1) values ("test20"), ("bar");
connection master1; connection master1;
use test;
set transaction isolation level repeatable read; set transaction isolation level repeatable read;
select * from t1; select * from t1;
connection master; connection master;
commit; commit;
drop table t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment