diff options
author | Tom Lane | 2000-12-28 00:16:11 +0000 |
---|---|---|
committer | Tom Lane | 2000-12-28 00:16:11 +0000 |
commit | 0a8da82576fb1f44e82432b0948b5249ac39d00d (patch) | |
tree | e3d13ab77a1d6891011ee954581b9faa0a1737e1 | |
parent | 8609d4abf248f0eede4ed9505226da3f7e3e7c84 (diff) |
Correct erroneous documentation of PQsetnonblocking().
-rw-r--r-- | doc/src/sgml/libpq.sgml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 03bf8672bdc..93abf2d3e92 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.53 2000/12/22 18:57:49 petere Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.54 2000/12/28 00:16:11 tgl Exp $ --> <chapter id="libpq-chapter"> @@ -1153,12 +1153,16 @@ connection to the backend. <itemizedlist> <listitem> <para> - <function>PQsetnonblocking</function> Sets the state of the connection - to non-blocking. + <function>PQsetnonblocking</function> Sets the nonblocking status of the + connection. <synopsis> -int PQsetnonblocking(PGconn *conn) +int PQsetnonblocking(PGconn *conn, int arg) </synopsis> - 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. + </para> + <para> + In the nonblocking state, calls to <function>PQputline</function>, <function>PQputnbytes</function>, <function>PQsendQuery</function> and <function>PQendcopy</function> will not block but instead return an error if they need to be called |