--source include/have_innodb.inc --echo # --echo # Bug #20028323 INNODB FULLTEXT BOOLEAN SEARCH INCORRECTLY HANDLES --echo # PARENTHESES --echo # CREATE TABLE t1 ( f1 INT NOT NULL AUTO_INCREMENT, f2 TEXT NOT NULL, PRIMARY KEY (f1), FULLTEXT (f2) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO t1 (f2) VALUES ('Pumpkin soup with cheese bread'), ('Yellow chicken curry'), ('Fresh green vegetables with garlic'); SELECT * FROM t1 WHERE MATCH(f2) AGAINST('+pumpkin' IN BOOLEAN MODE); SELECT * FROM t1 WHERE MATCH(f2) AGAINST('+cheese' IN BOOLEAN MODE); SELECT * FROM t1 WHERE MATCH(f2) AGAINST('+(pumpkin cheese)' IN BOOLEAN MODE); SELECT * FROM t1 WHERE MATCH(f2) AGAINST('+pumpkin +(souffle)' IN BOOLEAN MODE); SELECT * FROM t1 WHERE MATCH(f2) AGAINST('+pumpkin +(souffle tart)' IN BOOLEAN MODE); SELECT * FROM t1 WHERE MATCH(f2) AGAINST('+pumpkin +(>souffle souffle