mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
f1f5ec5d52
git-svn-id: file:///svn/mysql/tests/mysql-test@40099 c7de825b-a66e-492c-adef-691d508d4ae1
39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
SET STORAGE_ENGINE = 'tokudb';
|
|
set session transaction isolation level repeatable read;
|
|
# Establish connection conn1 (user = root)
|
|
DROP TABLE IF EXISTS foo;
|
|
set session transaction isolation level repeatable read;
|
|
create table foo (a int) engine=TokuDB;
|
|
insert into foo values (1);
|
|
begin;
|
|
select * from foo;
|
|
a
|
|
1
|
|
alter table foo add column b int;
|
|
alter table foo change b b bigint;
|
|
truncate table foo;
|
|
rename table foo to bar;
|
|
drop table bar;
|
|
select * From foo;
|
|
ERROR 42S02: Table 'test.foo' doesn't exist
|
|
set session transaction isolation level serializable;
|
|
create table foo (a int) engine=TokuDB;
|
|
insert into foo values (1);
|
|
begin;
|
|
insert into foo values(2);
|
|
alter table foo add column b int;
|
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
|
alter table foo change a a bigint;
|
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
|
truncate table foo;
|
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
|
rename table foo to bar;
|
|
ERROR HY000: Error on rename of './test/foo' to './test/bar' (errno: -30994)
|
|
drop table foo;
|
|
ERROR 42S02: Unknown table 'foo'
|
|
select * From foo;
|
|
a
|
|
1
|
|
2
|
|
commit;
|
|
drop table foo;
|