From: mkanat%bugzilla.org <> Date: Thu, 7 Aug 2008 04:42:47 +0000 (+0000) Subject: Bug 446645: Make MySQL deal correctly with hyphens in fulltext searches X-Git-Tag: bugzilla-3.0.5~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55fbebb4b9889906636b604df67cbc03e97c043b;p=thirdparty%2Fbugzilla.git Bug 446645: Make MySQL deal correctly with hyphens in fulltext searches Patch By Jesse Clark r=mkanat, a=mkanat --- 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);