summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-08-04 16:27:13 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-08-04 16:27:13 +0000
commit5e84e1ac05ab325b6c9b2f035d8cd28b2f84e036 (patch)
treeff7a6cc32f51c1ab006366426d88acab8795c22d /doc/src
parente4a5dc7b8e78b206253982ca06311af1b33f79ae (diff)
Fix sloppy mistakes in documentation of PQescapeLiteral and PQescapeIdentifier.
Noted by Dmitriy Igrishin.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/libpq.sgml10
1 files changed, 5 insertions, 5 deletions
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 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.313.2.3 2010/07/29 19:34:36 petere Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.313.2.4 2010/08/04 16:27:13 tgl Exp $ -->
<chapter id="libpq">
<title><application>libpq</application> - C Library</title>
@@ -3085,7 +3085,7 @@ char *PQoidStatus(const PGresult *res);
<listitem>
<para>
<synopsis>
-size_t PQescapeLiteral(PGconn *conn, char *str, size_t len);
+char *PQescapeLiteral(PGconn *conn, const char *str, size_t length);
</synopsis>
</para>
@@ -3149,12 +3149,12 @@ size_t PQescapeLiteral(PGconn *conn, char *str, size_t len);
<listitem>
<para>
<synopsis>
-size_t PQescapeIdentifier(PGconn *conn, char *str, size_t len);
+char *PQescapeIdentifier(PGconn *conn, const char *str, size_t length);
</synopsis>
</para>
<para>
- <function>PQescapeIndentifier</function> escapes a string for
+ <function>PQescapeIdentifier</function> 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 <type>bytea</type> column. <function>PQunescapeBytea</function>
converts this string representation into its binary representation.
It returns a pointer to a buffer allocated with
- <function>malloc()</function>, or null on error, and puts the size of
+ <function>malloc()</function>, or NULL on error, and puts the size of
the buffer in <parameter>to_length</parameter>. The result must be
freed using <function>PQfreemem</> when it is no longer needed.
</para>