pgsql: Add new escaping functions PQescapeLiteral and - Mailing list pgsql-committers

From rhaas@postgresql.org (Robert Haas)
Subject pgsql: Add new escaping functions PQescapeLiteral and
Date
Msg-id 20100121145853.305D87541B9@cvs.postgresql.org
Whole thread Raw
Responses Re: pgsql: Add new escaping functions PQescapeLiteral and
List pgsql-committers
Log Message:
-----------
Add new escaping functions PQescapeLiteral and PQescapeIdentifier.

PQescapeLiteral is similar to PQescapeStringConn, but it relieves the
caller of the need to know how large the output buffer should be, and
it provides the appropriate quoting (in addition to escaping special
characers within the string).  PQescapeIdentifier provides similar
functionality for escaping identifiers.

Per recent discussion with Tom Lane.

Modified Files:
--------------
    pgsql/doc/src/sgml:
        libpq.sgml (r1.294 -> r1.295)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/libpq.sgml?r1=1.294&r2=1.295)
    pgsql/src/interfaces/libpq:
        exports.txt (r1.23 -> r1.24)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/exports.txt?r1=1.23&r2=1.24)
        fe-exec.c (r1.206 -> r1.207)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-exec.c?r1=1.206&r2=1.207)
        libpq-fe.h (r1.148 -> r1.149)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/libpq-fe.h?r1=1.148&r2=1.149)

pgsql-committers by date:

Previous
From: bmomjian@pgfoundry.org (User Bmomjian)
Date:
Subject: pg-migrator - pg_migrator: Improve code in check_for_libpq_envvars;
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Add new escaping functions PQescapeLiteral and