Skip to content

Commit 5e84e1a

Browse files
committed
Fix sloppy mistakes in documentation of PQescapeLiteral and PQescapeIdentifier.
Noted by Dmitriy Igrishin.
1 parent e4a5dc7 commit 5e84e1a

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.313.2.3 2010/07/29 19:34:36 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.313.2.4 2010/08/04 16:27:13 tgl Exp $ -->
22

33
<chapter id="libpq">
44
<title><application>libpq</application> - C Library</title>
@@ -3085,7 +3085,7 @@ char *PQoidStatus(const PGresult *res);
30853085
<listitem>
30863086
<para>
30873087
<synopsis>
3088-
size_t PQescapeLiteral(PGconn *conn, char *str, size_t len);
3088+
char *PQescapeLiteral(PGconn *conn, const char *str, size_t length);
30893089
</synopsis>
30903090
</para>
30913091

@@ -3149,12 +3149,12 @@ size_t PQescapeLiteral(PGconn *conn, char *str, size_t len);
31493149
<listitem>
31503150
<para>
31513151
<synopsis>
3152-
size_t PQescapeIdentifier(PGconn *conn, char *str, size_t len);
3152+
char *PQescapeIdentifier(PGconn *conn, const char *str, size_t length);
31533153
</synopsis>
31543154
</para>
31553155

31563156
<para>
3157-
<function>PQescapeIndentifier</function> escapes a string for
3157+
<function>PQescapeIdentifier</function> escapes a string for
31583158
use as an SQL identifier, such as a table, column, or function name.
31593159
This is useful when a user-supplied identifier might contain
31603160
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);
34163416
to a <type>bytea</type> column. <function>PQunescapeBytea</function>
34173417
converts this string representation into its binary representation.
34183418
It returns a pointer to a buffer allocated with
3419-
<function>malloc()</function>, or null on error, and puts the size of
3419+
<function>malloc()</function>, or NULL on error, and puts the size of
34203420
the buffer in <parameter>to_length</parameter>. The result must be
34213421
freed using <function>PQfreemem</> when it is no longer needed.
34223422
</para>

0 commit comments

Comments
 (0)