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
signature.asc
Description: Digital signature

