Add new escaping functions PQescapeLiteral and PQescapeIdentifier.

Robert Haas <rhaas@postgresql.org>

Commit: d66679672f22de7360514f26cb81ccdb5ab43096
Author: Robert Haas <rhaas@postgresql.org>
Date: 2010-01-21T14:58:53Z
Releases: 9.0.0
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.

Files

PathChange+/−
doc/src/sgml/libpq.sgml modified +109 −13
src/interfaces/libpq/exports.txt modified +3 −1
src/interfaces/libpq/fe-exec.c modified +139 −1
src/interfaces/libpq/libpq-fe.h modified +3 −1