mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
a641944b22
git-svn-id: file:///svn/mysql/tests/mysql-test@34461 c7de825b-a66e-492c-adef-691d508d4ae1
68 lines
1.4 KiB
Text
68 lines
1.4 KiB
Text
--source include/have_tokudb.inc
|
|
#
|
|
# Record inconsistency.
|
|
#
|
|
#
|
|
SET STORAGE_ENGINE = 'tokudb';
|
|
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS fooff, foo, bar;
|
|
--enable_warnings
|
|
|
|
create table bar (a int);
|
|
insert into bar values(1),(2),(3);
|
|
|
|
create table foo (a int, primary key (a)) engine=TokuDB;
|
|
show create table foo;
|
|
insert into foo values(1);
|
|
select * from foo;
|
|
drop table foo;
|
|
|
|
create table foo (a int, primary key (a)) engine=TokuDB select * from bar;
|
|
show create table foo;
|
|
select * from foo;
|
|
flush tables;
|
|
select * from foo;
|
|
drop table foo;
|
|
|
|
begin;
|
|
select * from bar;
|
|
create table foo (a int, primary key (a)) engine=TokuDB select * from bar;
|
|
show create table foo;
|
|
select * from foo;
|
|
insert into foo values(1010101);
|
|
select * from foo;
|
|
drop table foo;
|
|
commit;
|
|
|
|
insert into bar values (2);
|
|
create table foo (a int, primary key (a)) engine=TokuDB;
|
|
show create table foo;
|
|
insert into foo values(1);
|
|
select * from foo;
|
|
flush tables;
|
|
select * from foo;
|
|
drop table foo;
|
|
|
|
--error ER_DUP_ENTRY
|
|
create table fooff (a int, primary key (a)) engine=TokuDB select * from bar;
|
|
create table fooff (a int)engine=TokuDB;
|
|
show create table fooff;
|
|
drop table fooff;
|
|
|
|
|
|
begin;
|
|
select * from bar;
|
|
--error ER_DUP_ENTRY
|
|
create table foo (a int, primary key (a)) engine=TokuDB select * from bar;
|
|
create table foo (abra int)engine=TokuDB;
|
|
show create table foo;
|
|
select * from foo;
|
|
drop table foo;
|
|
commit;
|
|
|
|
|
|
|
|
# Final cleanup.
|
|
DROP TABLE bar;
|
|
|