1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-30 11:22:14 +03:00
Files
mariadb/storage/tokudb/mysql-test/tokudb_bugs/t/895.test
Sergei Golubchik 9a3b9a5416 tokudb test suites
2013-09-09 13:59:38 +02:00

23 lines
525 B
Plaintext

# ticket 895 is a query optimization problem with the primary key
--source include/have_tokudb.inc
SET DEFAULT_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;