summaryrefslogtreecommitdiff
path: root/dbd/apr_dbd_pgsql.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2013-07-28 05:14:54 +0000
committerPeter Wemm <peter@FreeBSD.org>2013-07-28 05:14:54 +0000
commitd08b300705ff687948b1a2b89543e3a452e90c32 (patch)
tree983fbc233aad0f26d3f835f8d9db270a7ddb0494 /dbd/apr_dbd_pgsql.c
parentcce25783c6a76ad8dbe0d4811bea1b71f5e8dd25 (diff)
Notes
Diffstat (limited to 'dbd/apr_dbd_pgsql.c')
-rw-r--r--dbd/apr_dbd_pgsql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbd/apr_dbd_pgsql.c b/dbd/apr_dbd_pgsql.c
index 21f2179b8036..52c83ec99c10 100644
--- a/dbd/apr_dbd_pgsql.c
+++ b/dbd/apr_dbd_pgsql.c
@@ -265,7 +265,7 @@ static int dbd_pgsql_get_row(apr_pool_t *pool, apr_dbd_results_t *res,
if (res->random) {
if ((row->n >= 0) && (size_t)row->n >= res->ntuples) {
*rowp = NULL;
- apr_pool_cleanup_run(pool, res->res, clear_result);
+ apr_pool_cleanup_run(res->pool, res->res, clear_result);
res->res = NULL;
return -1;
}
@@ -470,7 +470,7 @@ static const char *dbd_pgsql_escape(apr_pool_t *pool, const char *arg,
{
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;
}