mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
20 lines
413 B
Text
20 lines
413 B
Text
|
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;
|