1CREATE TABLE `fttest04` (
2`id` int(11) NOT NULL AUTO_INCREMENT,
3`str` varchar(300) DEFAULT NULL,
4`str2` mediumtext,
5PRIMARY KEY (`id`),
6FULLTEXT KEY `idx` (`str`,`str2`)
7) ENGINE=InnoDB AUTO_INCREMENT=65520 DEFAULT CHARSET=utf8mb4;
8CREATE PROCEDURE load_test_data()
9BEGIN
10DECLARE cnt INTEGER UNSIGNED DEFAULT 1;
11WHILE (cnt <= 600220) DO
12INSERT INTO fttest04(str, str2) VALUES('徳島県','徳島県');
13SET cnt= cnt+1;
14END WHILE;
15END|
16CALL load_test_data();
17DROP PROCEDURE load_test_data;
18SELECT /*+ max_execution_time(2000) */ COUNT(id) FROM fttest04 WHERE
19MATCH (str,str2) AGAINST ('徳島県' IN BOOLEAN MODE) ;
20ERROR HY000: Query execution was interrupted, maximum statement execution time exceeded
21DROP TABLE fttest04;
22