mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
f45f072491
git-svn-id: file:///svn/mysql/tests/mysql-test@23577 c7de825b-a66e-492c-adef-691d508d4ae1
12 lines
517 B
Text
12 lines
517 B
Text
SET STORAGE_ENGINE = 'tokudb';
|
|
DROP TABLE IF EXISTS t;
|
|
CREATE TABLE t (r INT, s INT, t BIGINT, PRIMARY KEY (r, s));
|
|
INSERT INTO t VALUES (1,2,3),(4,5,6);
|
|
EXPLAIN SELECT * FROM t WHERE r > 0;
|
|
id select_type table type possible_keys key key_len ref rows Extra
|
|
1 SIMPLE t range PRIMARY PRIMARY 4 NULL 2 Using where
|
|
CREATE INDEX it on t(t);
|
|
EXPLAIN SELECT * FROM t WHERE r > 0;
|
|
id select_type table type possible_keys key key_len ref rows Extra
|
|
1 SIMPLE t index PRIMARY it 9 NULL 2 Using where; Using index
|
|
DROP TABLE t;
|