mariadb/mysql-test/suite/tokudb.add_index/r/1522.result
Rich Prohaska c5c9c4a824 refs #5545 make mysql add index tests run on 5.5 and 5.6
git-svn-id: file:///svn/mysql/tests/mysql-test@48524 c7de825b-a66e-492c-adef-691d508d4ae1
2012-10-02 17:41:18 +00:00

15 lines
450 B
Text
Executable file

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 clustering index b(b);
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;