Repair error in description of nonblocking usage of PQgetCopyData().
authorTom Lane <[email protected]>
Thu, 9 Jun 2005 19:08:47 +0000 (19:08 +0000)
committerTom Lane <[email protected]>
Thu, 9 Jun 2005 19:08:47 +0000 (19:08 +0000)
Per Volkan Yazici.

doc/src/sgml/libpq.sgml

index c478087b40d4be9171c0e68bc89b12aa2c2f5e25..cf3e74fe04267b6a4e6ab9df7085a7fcab0f2bf9 100644 (file)
@@ -2917,8 +2917,8 @@ A result of -2 indicates that an error occurred (consult
 When <parameter>async</> is true (not zero), <function>PQgetCopyData</>
 will not block waiting for input; it will return zero if the <command>COPY</command> is still
 in progress but no complete row is available.  (In this case wait for
-read-ready before trying again; it does not matter whether you call
-<function>PQconsumeInput</>.)  When <parameter>async</> is
+read-ready and then call <function>PQconsumeInput</> before calling
+<function>PQgetCopyData</> again.)  When <parameter>async</> is
 false (zero), <function>PQgetCopyData</> will block until data is available
 or the operation completes.
 </para>