mariadb/mysql-test/suite/tokudb/t/truncate_row_count.test
Rich Prohaska c22ab2bbb5 refs #6440 simplify the mysql tests for tokudb
git-svn-id: file:///svn/mysql/tests/mysql-test@54997 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-02 14:02:03 +00:00

13 lines
505 B
Text

# verify that truncate table leaves the table empty and sets the row count
# to zero.
--disable_warnings
drop table if exists t;
--enable_warnings
create table t (a int, b int, primary key (a)) engine=tokudb;
insert into t values (1,2),(2,4),(3,8);
select * from t;
select TABLE_ROWS from information_schema.tables where table_schema='test' and table_name='t';
truncate table t;
select * from t;
select TABLE_ROWS from information_schema.tables where table_schema='test' and table_name='t';
drop table t;