[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#701922: cloning 694942, reassign -1 to release-notes



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

Attachment: signature.asc
Description: Digital signature


Reply to: