config root man

Current Path : /home/usr.opt/mysql57/mysql-test/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/t/range_with_memory_limit.test

--echo # Bug#17769777 EXCESSIVE MEMORY CONSUMPTION WITH MANY AND / BETWEEN
--echo #              ITEMS
--echo # Bug#17413040 USING MANY WHERE CONDITIONS MAKES RANGE SCAN DISABLED

CREATE TABLE t1 (
a INT,
b INT,
KEY (a)
)ENGINE=INNODB;

INSERT INTO t1 VALUES (0, 0), (1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6),
(7, 7), (8, 8), (9, 9);

ANALYZE TABLE t1;
SET RANGE_OPTIMIZER_MAX_MEM_SIZE= 100;
EXPLAIN SELECT DISTINCT a FROM t1 WHERE (a, b) IN ((0, 0), (1, 1));
SET RANGE_OPTIMIZER_MAX_MEM_SIZE= DEFAULT;
EXPLAIN SELECT DISTINCT a FROM t1 WHERE (a, b) IN ((0, 0), (1, 1));

DROP TABLE t1;

--source include/force_myisam_default.inc

#Running the entire test suite for range queries to increase the test
#coverage
SET RANGE_OPTIMIZER_MAX_MEM_SIZE= 50;
--source include/range.inc
SET RANGE_OPTIMIZER_MAX_MEM_SIZE= DEFAULT;

--echo # End of test for Bug#17769777 and Bug#17413040

Man Man