apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r1327636 - /apr/apr/trunk/dbd/apr_dbd_pgsql.c
Date Wed, 18 Apr 2012 19:29:06 GMT
Author: niq
Date: Wed Apr 18 19:29:06 2012
New Revision: 1327636

URL: http://svn.apache.org/viewvc?rev=1327636&view=rev
Log:
Switch pgsql module from PQescapeString (which pgsql now deprecates)
to PQescapeStringConn

Modified:
    apr/apr/trunk/dbd/apr_dbd_pgsql.c

Modified: apr/apr/trunk/dbd/apr_dbd_pgsql.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/dbd/apr_dbd_pgsql.c?rev=1327636&r1=1327635&r2=1327636&view=diff
==============================================================================
--- apr/apr/trunk/dbd/apr_dbd_pgsql.c (original)
+++ apr/apr/trunk/dbd/apr_dbd_pgsql.c Wed Apr 18 19:29:06 2012
@@ -469,7 +469,7 @@ static const char *dbd_pgsql_escape(apr_
 {
     size_t len = strlen(arg);
     char *ret = apr_palloc(pool, 2*len + 2);
-    PQescapeString(ret, arg, len);
+    PQescapeStringConn(sql->conn, ret, arg, len, NULL);
     return ret;
 }
 



Mime
View raw message