Le mercredi 12 juin 2013 14:10:25, Chris Moules a écrit : > Hello Tom, > > System is a Debian 7 test system > dspam: 3.10.2 - backport from testing > postgresql: 9.1 > > The line that I patched is still in git HEAD as-is. I can look at > re-building my full-debug version and posting full output.
Strange, there is normally a patch (see attached file) to handle this in Debian. > > Regards, > > Chris Best regards, Thomas of the Debian Dspam team
Require legacy mode for string escaping in pgsql Explicitly require legacy mode for string escaping in PostgreSQL since it now defaults to standard compliant mode. Author: Julien Cristau <jcris...@debian.org> Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=694942 Bug-Debian: http://bugs.debian.org/694942 Forwarded: no Last-Update: 2013-05-29 diff --git a/src/pgsql_drv.c b/src/pgsql_drv.c index eac2354..b110a3f 100644 --- a/src/pgsql_drv.c +++ b/src/pgsql_drv.c @@ -3175,6 +3175,12 @@ PGconn *_pgsql_drv_connect(DSPAM_CTX *CTX) return NULL; } + if (PQserverVersion(dbh) >= 90100) + { + PGresult *result = PQexec(dbh, "SET standard_conforming_strings TO off;"); + if (result) + PQclear(result); + } return dbh; FAILURE:
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev
_______________________________________________ Dspam-devel mailing list Dspam-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-devel