Current Path : /home/usr.opt/mysql57/mysql-test/suite/innodb_fts/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 |
Current File : /home/usr.opt/mysql57/mysql-test/suite/innodb_fts/t/phrase.test |
-- source include/have_innodb.inc # # BUG#20465273 - FULLTEXT SEARCH BEHAVIOUR WITH MYISAM VS. INNODB (WRONG RESULT WITH INNODB) # CREATE TABLE articles ( id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, title VARCHAR(200), body TEXT, FULLTEXT (title,body) ) ENGINE=InnoDB; INSERT INTO articles (title,body) VALUES (NULL, 'mysql good database'), (NULL, ' mysql good database'), ('', 'mysql good database'), ('', ' mysql good database'), (' ', 'mysql good database'), ('mysql', 'good database'), ('mysql ', 'good database'), ('mysql', ' good database'), ('mysql good database', ''), ('mysql good database', NULL); SET GLOBAL innodb_ft_aux_table="test/articles"; SELECT * FROM INFORMATION_SCHEMA.INNODB_FT_INDEX_CACHE; SET GLOBAL innodb_ft_aux_table=default; SELECT * FROM articles; SELECT * FROM articles WHERE MATCH(title, body) AGAINST('"mysql good database"' IN BOOLEAN MODE); SELECT * FROM articles WHERE MATCH(title, body) AGAINST('("mysql good database")' IN BOOLEAN MODE); DROP TABLE articles;