mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
9de56caa26
git-svn-id: file:///svn/mysql/tests/mysql-test@38875 c7de825b-a66e-492c-adef-691d508d4ae1
22 lines
517 B
Text
22 lines
517 B
Text
# ticket 895 is a query optimization problem with the primary key
|
|
|
|
--source include/have_tokudb.inc
|
|
SET STORAGE_ENGINE = 'tokudb';
|
|
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS t;
|
|
--enable_warnings
|
|
|
|
CREATE TABLE t (r INT, s INT, t BIGINT, PRIMARY KEY (r, s));
|
|
INSERT INTO t VALUES (1,2,3),(4,5,6);
|
|
# ignore rows column
|
|
--replace_column 9 NULL;
|
|
EXPLAIN SELECT * FROM t WHERE r > 0;
|
|
CREATE INDEX it on t(t);
|
|
# ignore rows column
|
|
--replace_column 9 NULL;
|
|
EXPLAIN SELECT * FROM t WHERE r > 0;
|
|
|
|
# Final cleanup.
|
|
DROP TABLE t;
|
|
|