refs #4675, add test

git-svn-id: file:///svn/mysql/tests/mysql-test@49930 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Zardosht Kasheff 2012-11-13 21:54:42 +00:00
parent 79c9d67f71
commit 9dca119bb8
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,21 @@
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo;
create table foo (a int auto_increment, primary key (a))engine=TokuDB, auto_increment=5;
insert into foo values (),(),(),();
select * from foo;
a
5
6
7
8
truncate table foo;
select * from foo;
a
insert into foo values (),(),(),();
select * from foo;
a
5
6
7
8
DROP TABLE foo;

View file

@ -0,0 +1,21 @@
--source include/have_tokudb.inc
#
# Record inconsistency.
#
#
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings
DROP TABLE IF EXISTS foo;
--enable_warnings
create table foo (a int auto_increment, primary key (a))engine=TokuDB, auto_increment=5;
insert into foo values (),(),(),();
select * from foo;
truncate table foo;
select * from foo;
insert into foo values (),(),(),();
select * from foo;
# Final cleanup.
DROP TABLE foo;