]> granicus.if.org Git - postgresql/commit
Add new escaping functions PQescapeLiteral and PQescapeIdentifier.
authorRobert Haas <rhaas@postgresql.org>
Thu, 21 Jan 2010 14:58:53 +0000 (14:58 +0000)
committerRobert Haas <rhaas@postgresql.org>
Thu, 21 Jan 2010 14:58:53 +0000 (14:58 +0000)
commitd66679672f22de7360514f26cb81ccdb5ab43096
treedc24170dbbf61be46e9e55dbb9315cbe3a22cb96
parented1d3f5ecf60be7f8e7aec38657292f2455b4877
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.
doc/src/sgml/libpq.sgml
src/interfaces/libpq/exports.txt
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/libpq-fe.h