raise_error=0 works strange
parent
02e716777f
commit
cb0f6d025c
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue