File patch-PgSQL of Package spamassassin
Index: lib/Mail/SpamAssassin/PgSQL.pm
===================================================================
--- lib/Mail/SpamAssassin/BayesStore/PgSQL.pm 2006-09-29 15:06:38.000000000 +0200
+++ lib/Mail/SpamAssassin/BayesStore/PgSQL.pm 2006-11-15 08:45:52.000000000 +0100
@@ -933,7 +933,7 @@
}
my $escaped_token = _quote_bytea($token);
- my $sth = $self->{_dbh}->prepare("select put_tokens($self->{_userid},'{$escaped_token}',
+ my $sth = $self->{_dbh}->prepare("select put_tokens($self->{_userid},'{$escaped_token}'::bytea[],
$spam_count,$ham_count,$atime)");
unless (defined($sth)) {
@@ -997,7 +997,7 @@
my $tokenarray = join(",", map { '"' . _quote_bytea($_) . '"' } sort keys %{$tokens});
- my $sth = $self->{_dbh}->prepare("select put_tokens($self->{_userid}, '{$tokenarray}',
+ my $sth = $self->{_dbh}->prepare("select put_tokens($self->{_userid}, '{$tokenarray}'::bytea[],
$spam_count, $ham_count, $atime)");
unless (defined($sth)) {