From cb0f6d025c51b91e62d9e189515bf9b8412cd296 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Thu, 23 May 2019 18:34:47 +0300 Subject: [PATCH] raise_error=0 works strange --- Bugzilla/Bug.pm | 4 +++- Bugzilla/DB.pm | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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;