[Pkg-dspam-misc] Bug#694942: Bug#701922: cloning 694942, reassign -1 to release-notes
Julien Cristau
jcristau at debian.org
Sat Mar 2 14:36:23 UTC 2013
On Sat, Mar 2, 2013 at 14:53:19 +0100, Julien Cristau wrote:
> Still seems like something that should be fixed instead of documenting
> that we're shipping non-working stuff.
>
By which I guess I mean something like this:
--- dspam-3.10.1+dfsg.orig/src/pgsql_drv.c
+++ dspam-3.10.1+dfsg/src/pgsql_drv.c
@@ -3175,6 +3175,12 @@ PGconn *_pgsql_drv_connect(DSPAM_CTX *CT
return NULL;
}
+ if (PQserverVersion(dbh) >= 90100)
+ {
+ PGresult *result = PQexec(dbh, "SET standard_conforming_strings TO off;");
+ if (result)
+ PQclear(result);
+ }
return dbh;
FAILURE:
Not even build-tested, so there's some work left, but hopefully you get
the idea.
Cheers,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-dspam-misc/attachments/20130302/3ca03f71/attachment.pgp>
More information about the Pkg-dspam-misc
mailing list