From: Tom Lane Date: Wed, 4 Aug 2010 16:27:13 +0000 (+0000) Subject: Fix sloppy mistakes in documentation of PQescapeLiteral and PQescapeIdentifier. X-Git-Tag: REL9_0_RC1~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e84e1ac05ab325b6c9b2f035d8cd28b2f84e036;p=thirdparty%2Fpostgresql.git Fix sloppy mistakes in documentation of PQescapeLiteral and PQescapeIdentifier. Noted by Dmitriy Igrishin. --- diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index a068b1016a8..ad5cb8cce2b 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,4 +1,4 @@ - + <application>libpq</application> - C Library @@ -3085,7 +3085,7 @@ char *PQoidStatus(const PGresult *res); -size_t PQescapeLiteral(PGconn *conn, char *str, size_t len); +char *PQescapeLiteral(PGconn *conn, const char *str, size_t length); @@ -3149,12 +3149,12 @@ size_t PQescapeLiteral(PGconn *conn, char *str, size_t len); -size_t PQescapeIdentifier(PGconn *conn, char *str, size_t len); +char *PQescapeIdentifier(PGconn *conn, const char *str, size_t length); - PQescapeIndentifier escapes a string for + PQescapeIdentifier escapes a string for use as an SQL identifier, such as a table, column, or function name. This is useful when a user-supplied identifier might contain special characters that would otherwise not be interpreted as part @@ -3416,7 +3416,7 @@ unsigned char *PQunescapeBytea(const unsigned char *from, size_t *to_length); to a bytea column. PQunescapeBytea converts this string representation into its binary representation. It returns a pointer to a buffer allocated with - malloc(), or null on error, and puts the size of + malloc(), or NULL on error, and puts the size of the buffer in to_length. The result must be freed using PQfreemem when it is no longer needed.