]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 446645: Properly deal with hyphens when doing fulltext searches on MySQL
authormkanat%bugzilla.org <>
Thu, 7 Aug 2008 04:41:10 +0000 (04:41 +0000)
committermkanat%bugzilla.org <>
Thu, 7 Aug 2008 04:41:10 +0000 (04:41 +0000)
Patch By Jesse Clark <jjclark1982@gmail.com> r=mkanat, a=mkanat

Bugzilla/DB/Mysql.pm

index 3e9d6f997f1b3b7b7f2583b382646de2794f634e..d78931795ecae53fba7126693eb83b9ea3b4cdf2 100644 (file)
@@ -136,7 +136,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);