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

Bugzilla/DB/Mysql.pm

index f9c80a59d5ee9902a068c51f6efb171b90b0f6c6..af8ed8ec6cc1e631631abecdd2c612a732c65762 100644 (file)
@@ -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);