summaryrefslogtreecommitdiff
path: root/storage/tokudb/mysql-test/tokudb_bugs/t/db756_card_part_hash_1.test
blob: 3ef66a4b1e63aacd122a75db1b499a179b4fded9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# DB-756 verify that cardinality is picked from the partition where the rows are mapped.  in this case, the last partition.
source include/have_tokudb.inc;
source include/have_partition.inc;
set default_storage_engine='tokudb';
disable_warnings;
drop table if exists t;
enable_warnings;
create table t (id int, x int, primary key (id), key (x)) partition by hash(id) partitions 2;
show indexes from t;
insert into t values (1,1),(3,1),(5,1);
show indexes from t;
analyze table t;
show indexes from t;
drop table t;