mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
refs #4675, add test
git-svn-id: file:///svn/mysql/tests/mysql-test@49930 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
79c9d67f71
commit
9dca119bb8
2 changed files with 42 additions and 0 deletions
21
mysql-test/suite/tokudb.bugs/r/4675.result
Normal file
21
mysql-test/suite/tokudb.bugs/r/4675.result
Normal 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;
|
21
mysql-test/suite/tokudb.bugs/t/4675.test
Normal file
21
mysql-test/suite/tokudb.bugs/t/4675.test
Normal 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;
|
||||
|
Loading…
Reference in a new issue