diff options
Diffstat (limited to 'contrib/apr-util/dbd/apr_dbd_pgsql.c')
-rw-r--r-- | contrib/apr-util/dbd/apr_dbd_pgsql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/apr-util/dbd/apr_dbd_pgsql.c b/contrib/apr-util/dbd/apr_dbd_pgsql.c index 21f2179..52c83ec 100644 --- a/contrib/apr-util/dbd/apr_dbd_pgsql.c +++ b/contrib/apr-util/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; } |