1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00
Files
mariadb/storage/tokudb/mysql-test/tokudb_add_index/r/1522.result
Sergei Golubchik 9a3b9a5416 tokudb test suites
2013-09-09 13:59:38 +02:00

16 lines
454 B
Plaintext

SET DEFAULT_STORAGE_ENGINE='tokudb';
DROP TABLE IF EXISTS t1;
create table t1 (a int, b int) engine=tokudb;
insert into t1 values (1,1),(1,2),(2,1),(2,2);
select count(*) from t1 where b > 0;
count(*)
4
alter table t1 add index b(b) clustering=yes;
explain select count(*) from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 NA b b 5 NA NA NA
select count(*) from t1 where b > 0;
count(*)
4
DROP TABLE t1;