You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by pa...@apache.org on 2004/11/04 16:18:39 UTC
svn commit: rev 56597 - spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore
Author: parker
Date: Thu Nov 4 07:18:37 2004
New Revision: 56597
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/SQL.pm
Log:
Adding missing error check
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/SQL.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/SQL.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/SQL.pm Thu Nov 4 07:18:37 2004
@@ -241,6 +241,11 @@
my $sth = $self->{_dbh}->prepare_cached($sql);
+ unless (defined($sth)) {
+ dbg("bayes: calculate_expire_delta: SQL Error: ".$self->{_dbh}->errstr());
+ return %delta;
+ }
+
for (my $i = 1; $i <= $max_expire_mult; $i<<=1) {
my $rc = $sth->execute($self->{_userid}, $newest_atime, $start * $i);