Correct erroneous documentation of PQsetnonblocking().
authorTom Lane
Thu, 28 Dec 2000 00:16:11 +0000 (00:16 +0000)
committerTom Lane
Thu, 28 Dec 2000 00:16:11 +0000 (00:16 +0000)
doc/src/sgml/libpq.sgml

index 03bf8672bdce5d3d45256a6b00f337949bd43e50..93abf2d3e92b1eb08dc7a57d7cf7659b4dd7dc50 100644 (file)
@@ -1,5 +1,5 @@
 
 
  
@@ -1153,12 +1153,16 @@ connection to the backend.
 
  
    
-    PQsetnonblocking Sets the state of the connection
-    to non-blocking.
+    PQsetnonblocking Sets the nonblocking status of the
+    connection.
 
-int PQsetnonblocking(PGconn *conn)
+int PQsetnonblocking(PGconn *conn, int arg)
 
-    this function will ensure that calls to 
+    Sets the state of the connection to nonblocking if arg is TRUE,
+    blocking if arg is FALSE.  Returns 0 if OK, -1 if error.
+   
+   
+    In the nonblocking state, calls to
     PQputlinePQputnbytes,
     PQsendQuery and PQendcopy
     will not block but instead return an error if they need to be called