mariadb/mysql-test/suite/tokudb/t/card_sk_2.test
Rich Prohaska b9acf365e3 refs #6022 cardinality tests for mysql
git-svn-id: file:///svn/mysql/tests/mysql-test@53944 c7de825b-a66e-492c-adef-691d508d4ae1
2013-03-04 16:45:22 +00:00

19 lines
401 B
Text

source include/have_tokudb.inc;
disable_warnings;
drop table if exists tt;
enable_warnings;
create table tt (a int, b int, key(a,b));
insert into tt values (0,0),(0,1),(1,0),(1,1);
# test that analyze computes the correct cardinality for the SK
show indexes from tt;
analyze table tt;
show indexes from tt;
# test that cardinality is persistent
flush tables;
show indexes from tt;
drop table tt;