Skip to content

Commit ba19b23

Browse files
committed
Fix sloppy mistakes in documentation of PQescapeLiteral and PQescapeIdentifier.
Noted by Dmitriy Igrishin.
1 parent 72150db commit ba19b23

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.317 2010/07/29 19:34:40 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.318 2010/08/04 16:27:05 tgl Exp $ -->
22

33
<chapter id="libpq">
44
<title><application>libpq</application> - C Library</title>
@@ -3107,7 +3107,7 @@ char *PQoidStatus(const PGresult *res);
31073107
<listitem>
31083108
<para>
31093109
<synopsis>
3110-
size_t PQescapeLiteral(PGconn *conn, char *str, size_t len);
3110+
char *PQescapeLiteral(PGconn *conn, const char *str, size_t length);
31113111
</synopsis>
31123112
</para>
31133113

@@ -3171,12 +3171,12 @@ size_t PQescapeLiteral(PGconn *conn, char *str, size_t len);
31713171
<listitem>
31723172
<para>
31733173
<synopsis>
3174-
size_t PQescapeIdentifier(PGconn *conn, char *str, size_t len);
3174+
char *PQescapeIdentifier(PGconn *conn, const char *str, size_t length);
31753175
</synopsis>
31763176
</para>
31773177

31783178
<para>
3179-
<function>PQescapeIndentifier</function> escapes a string for
3179+
<function>PQescapeIdentifier</function> escapes a string for
31803180
use as an SQL identifier, such as a table, column, or function name.
31813181
This is useful when a user-supplied identifier might contain
31823182
special characters that would otherwise not be interpreted as part
@@ -3438,7 +3438,7 @@ unsigned char *PQunescapeBytea(const unsigned char *from, size_t *to_length);
34383438
to a <type>bytea</type> column. <function>PQunescapeBytea</function>
34393439
converts this string representation into its binary representation.
34403440
It returns a pointer to a buffer allocated with
3441-
<function>malloc()</function>, or null on error, and puts the size of
3441+
<function>malloc()</function>, or NULL on error, and puts the size of
34423442
the buffer in <parameter>to_length</parameter>. The result must be
34433443
freed using <function>PQfreemem</> when it is no longer needed.
34443444
</para>

0 commit comments

Comments
 (0)