Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
spamassassin
> patch-PgSQL-3.2.5
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File patch-PgSQL-3.2.5 of Package spamassassin
--- lib/Mail/SpamAssassin/BayesStore/PgSQL.pm.orig 2008-07-09 22:07:59.000000000 +0200 +++ lib/Mail/SpamAssassin/BayesStore/PgSQL.pm 2008-07-09 22:08:06.000000000 +0200 @@ -939,7 +939,7 @@ } my $escaped_token = _quote_bytea($token); - my $sth = $self->{_dbh}->prepare("select put_tokens($self->{_userid},$self->{_esc_prefix}'{$escaped_token}', + my $sth = $self->{_dbh}->prepare("select put_tokens($self->{_userid},$self->{_esc_prefix}'{$escaped_token}'::bytea[], $spam_count,$ham_count,$atime)"); unless (defined($sth)) { @@ -1003,7 +1003,7 @@ my $tokenarray = join(",", map { '"' . _quote_bytea($_) . '"' } sort keys %{$tokens}); - my $sth = $self->{_dbh}->prepare("select put_tokens($self->{_userid}, $self->{_esc_prefix}'{$tokenarray}', + my $sth = $self->{_dbh}->prepare("select put_tokens($self->{_userid}, $self->{_esc_prefix}'{$tokenarray}'::bytea[], $spam_count, $ham_count, $atime)"); unless (defined($sth)) {