Commit 9dca119b authored by Zardosht Kasheff's avatar Zardosht Kasheff

refs #4675, add test

git-svn-id: file:///svn/mysql/tests/mysql-test@49930 c7de825b-a66e-492c-adef-691d508d4ae1
parent 79c9d67f
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;
--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;
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