From 55fbebb4b9889906636b604df67cbc03e97c043b Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 7 Aug 2008 04:42:47 +0000 Subject: [PATCH] Bug 446645: Make MySQL deal correctly with hyphens in fulltext searches Patch By Jesse Clark r=mkanat, a=mkanat --- Bugzilla/DB/Mysql.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/DB/Mysql.pm b/Bugzilla/DB/Mysql.pm index f9c80a59d5..af8ed8ec6c 100644 --- a/Bugzilla/DB/Mysql.pm +++ b/Bugzilla/DB/Mysql.pm @@ -133,7 +133,7 @@ sub sql_fulltext_search { # Add the boolean mode modifier if the search string contains # boolean operators. - my $mode = ($text =~ /[+-<>()~*"]/ ? "IN BOOLEAN MODE" : ""); + my $mode = ($text =~ /[+\-<>()~*"]/ ? "IN BOOLEAN MODE" : ""); # quote the text for use in the MATCH AGAINST expression $text = $self->quote($text); -- 2.47.3