mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 07:44:22 +01:00
8ea4ac6085
git-svn-id: file:///svn/mysql/tests/mysql-test@23629 c7de825b-a66e-492c-adef-691d508d4ae1
30 lines
1.2 KiB
Text
Executable file
30 lines
1.2 KiB
Text
Executable file
SET STORAGE_ENGINE = 'tokudb';
|
|
# Establish connection conn1 (user = root)
|
|
DROP TABLE IF EXISTS foo,foo1;
|
|
set session transaction isolation level repeatable read;
|
|
create table foo (a int) engine=TokuDB;
|
|
show create table foo;
|
|
Table Create Table
|
|
foo CREATE TABLE `foo` (
|
|
`a` int(11) DEFAULT NULL
|
|
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
|
begin;
|
|
select * from foo;
|
|
a
|
|
set session transaction isolation level repeatable read;
|
|
create table foo1(a int, b int, c int, primary key (a)) engine=TokuDB;
|
|
insert into foo1 values (1,10,100),(2,20,200),(3,30,300),(4,40,400),(5,50,500);
|
|
select a from foo1;
|
|
ERROR HY000: Table definition has changed, please retry transaction
|
|
select a from foo1 order by a desc;
|
|
ERROR HY000: Table definition has changed, please retry transaction
|
|
select * from foo1 where a=3;
|
|
ERROR HY000: Table definition has changed, please retry transaction
|
|
select * from foo1 where a>3;
|
|
ERROR HY000: Table definition has changed, please retry transaction
|
|
select * from foo1 where a>3 order by a desc;
|
|
ERROR HY000: Table definition has changed, please retry transaction
|
|
select * from foo1;
|
|
ERROR HY000: Table definition has changed, please retry transaction
|
|
set session transaction isolation level serializable;
|
|
DROP TABLE foo,foo1;
|