diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 09709279b..e57f2ea69 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1722,7 +1722,9 @@ sub _sync_fulltext $sql = "UPDATE $table SET short_desc=$row->[0],". " comments=$row->[1], comments_private=$row->[2] WHERE $id_field=".$self->id; } - return $sph->do($sql); + my $r = eval { $sph->do($sql) }; + if ($@) { warn $@; } + return $r; } # This is the correct way to delete bugs from the DB. diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index 247260a98..3daea3315 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -138,7 +138,7 @@ sub connect_sphinx mysql_enable_utf8 => 1, # Needs to be explicitly specified for command-line processes. mysql_auto_reconnect => 1, - raise_error => 0, + raise_error => 1, }); $sphinx->do("SET NAMES utf8") if $sphinx;