|
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 $ --> |
2 | 2 |
|
3 | 3 | <chapter id="libpq">
|
4 | 4 | <title><application>libpq</application> - C Library</title>
|
@@ -3085,7 +3085,7 @@ char *PQoidStatus(const PGresult *res);
|
3085 | 3085 | <listitem>
|
3086 | 3086 | <para>
|
3087 | 3087 | <synopsis>
|
3088 |
| -size_t PQescapeLiteral(PGconn *conn, char *str, size_t len); |
| 3088 | +char *PQescapeLiteral(PGconn *conn, const char *str, size_t length); |
3089 | 3089 | </synopsis>
|
3090 | 3090 | </para>
|
3091 | 3091 |
|
@@ -3149,12 +3149,12 @@ size_t PQescapeLiteral(PGconn *conn, char *str, size_t len);
|
3149 | 3149 | <listitem>
|
3150 | 3150 | <para>
|
3151 | 3151 | <synopsis>
|
3152 |
| -size_t PQescapeIdentifier(PGconn *conn, char *str, size_t len); |
| 3152 | +char *PQescapeIdentifier(PGconn *conn, const char *str, size_t length); |
3153 | 3153 | </synopsis>
|
3154 | 3154 | </para>
|
3155 | 3155 |
|
3156 | 3156 | <para>
|
3157 |
| - <function>PQescapeIndentifier</function> escapes a string for |
| 3157 | + <function>PQescapeIdentifier</function> escapes a string for |
3158 | 3158 | use as an SQL identifier, such as a table, column, or function name.
|
3159 | 3159 | This is useful when a user-supplied identifier might contain
|
3160 | 3160 | 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);
|
3416 | 3416 | to a <type>bytea</type> column. <function>PQunescapeBytea</function>
|
3417 | 3417 | converts this string representation into its binary representation.
|
3418 | 3418 | 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 |
3420 | 3420 | the buffer in <parameter>to_length</parameter>. The result must be
|
3421 | 3421 | freed using <function>PQfreemem</> when it is no longer needed.
|
3422 | 3422 | </para>
|
|
0 commit comments