Fix sloppy mistakes in documentation of PQescapeLiteral and PQescapeIdentifier.
authorTom Lane
Wed, 4 Aug 2010 16:27:05 +0000 (16:27 +0000)
committerTom Lane
Wed, 4 Aug 2010 16:27:05 +0000 (16:27 +0000)
Noted by Dmitriy Igrishin.

doc/src/sgml/libpq.sgml

index 407529164e04e86f78c62c2a2a3f4e885b264c2c..60f269f53df6bb83e495b4e04fc7749403652171 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
 
  <application>libpq</application> - C Library
@@ -3107,7 +3107,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);
 
      
 
@@ -3171,12 +3171,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
@@ -3438,7 +3438,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.