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/join_file_handler.test

--echo #
--echo # Bug#28039829: SELECT QUERY WITH COMPLEX JOINS LEAKS FILE HANDLES
--echo #

CREATE DATABASE db_28039829;
USE db_28039829;

CREATE TABLE t1 (c1 CHAR(36) NOT NULL,
                 c2 CHAR(36) DEFAULT NULL,
                 c3 VARCHAR(100) DEFAULT NULL,
                 c4 VARCHAR(100) DEFAULT NULL,
                 PRIMARY KEY (c1),
                 KEY idx_1 (c2),
                 KEY idx_2 (c3, c4),
                 KEY idx_3 (c4, c3))
                ENGINE=InnoDB;

CREATE TABLE t2 (c1 CHAR(36) DEFAULT NULL)
                ENGINE=InnoDB DEFAULT CHARSET=utf8;

LOAD DATA INFILE '../../std_data/bug28039829.dat' INTO TABLE t1;
INSERT INTO t2 VALUES ('63dfcd94-143a-11e7-bec8-fa163e4dd901'),
                      ('dcda6718-143a-11e7-82e5-fa163e4dd901');

SET optimizer_switch="block_nested_loop=OFF";

SELECT t1.c1 FROM t1 INNER JOIN t2 ON t1.c2 = t2.c1
             WHERE (t1.c3 LIKE 'James' OR t1.c4 LIKE 'abc');

#Cleanup
DROP TABLE t1, t2;
DROP DATABASE db_28039829;
SET optimizer_switch=DEFAULT;

Man Man