raise_error=0 works strange

beta
Vitaliy Filippov 2019-05-23 18:34:47 +03:00
parent 02e716777f
commit cb0f6d025c
2 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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;