mariadb/mysql-test/suite/tokudb/t/card_unique_sk.test

20 lines
413 B
Text
Raw Normal View History

source include/have_tokudb.inc;
disable_warnings;
drop table if exists tt;
enable_warnings;
create table tt (a int, b int, unique key(a));
insert into tt values (1,0),(2,1),(3,2),(4,3);
# test that analyze computes the correct cardinality for the unique 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;