mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
21 lines
446 B
Text
21 lines
446 B
Text
|
source include/have_tokudb.inc;
|
||
|
|
||
|
disable_warnings;
|
||
|
drop table if exists tt;
|
||
|
enable_warnings;
|
||
|
|
||
|
create table tt (a int, b int, key(b));
|
||
|
insert into tt values (1,0),(2,1),(3,2),(4,3);
|
||
|
insert into tt values (5,0),(6,1),(7,2),(8,3);
|
||
|
|
||
|
# 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;
|