mirror of
https://github.com/MariaDB/server.git
synced 2025-03-08 04:03:30 +01:00

git-svn-id: file:///svn/mysql/tests/mysql-test@53944 c7de825b-a66e-492c-adef-691d508d4ae1
19 lines
407 B
Text
19 lines
407 B
Text
source include/have_tokudb.inc;
|
|
|
|
disable_warnings;
|
|
drop table if exists tt;
|
|
enable_warnings;
|
|
|
|
create table tt (a int, b int, primary key(a));
|
|
insert into tt values (1,0),(2,1),(3,2),(4,3);
|
|
|
|
# test that analyze computes the correct cardinality for the PK
|
|
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;
|