~ubuntu-branches/ubuntu/trusty/apr-util/trusty-proposed

« back to all changes in this revision

Viewing changes to dbd/apr_dbd_pgsql.c

  • Committer: Package Import Robot
  • Author(s): Stefan Fritsch
  • Date: 2013-05-05 15:43:34 UTC
  • mfrom: (1.3.4)
  • Revision ID: package-import@ubuntu.com-20130505154334-ljd2tn8515nf96mo
Tags: 1.5.2-1
* New upstream release.
* Ship find_apu.m4 in libaprutil1-dev. Closes: #699327

Show diffs side-by-side

added added

removed removed

Lines of Context:
265
265
    if (res->random) {
266
266
        if ((row->n >= 0) && (size_t)row->n >= res->ntuples) {
267
267
            *rowp = NULL;
268
 
            apr_pool_cleanup_run(pool, res->res, clear_result);
 
268
            apr_pool_cleanup_run(res->pool, res->res, clear_result);
269
269
            res->res = NULL;
270
270
            return -1;
271
271
        }
470
470
{
471
471
    size_t len = strlen(arg);
472
472
    char *ret = apr_palloc(pool, 2*len + 2);
473
 
    PQescapeString(ret, arg, len);
 
473
    PQescapeStringConn(sql->conn, ret, arg, len, NULL);
474
474
    return ret;
475
475
}
476
476