Commit 0a8da825 authored by Tom Lane's avatar Tom Lane

Correct erroneous documentation of PQsetnonblocking().

parent 8609d4ab
<!-- <!--
$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"> <chapter id="libpq-chapter">
...@@ -1153,12 +1153,16 @@ connection to the backend. ...@@ -1153,12 +1153,16 @@ connection to the backend.
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para> <para>
<function>PQsetnonblocking</function> Sets the state of the connection <function>PQsetnonblocking</function> Sets the nonblocking status of the
to non-blocking. connection.
<synopsis> <synopsis>
int PQsetnonblocking(PGconn *conn) int PQsetnonblocking(PGconn *conn, int arg)
</synopsis> </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>PQputline</function>, <function>PQputnbytes</function>,
<function>PQsendQuery</function> and <function>PQendcopy</function> <function>PQsendQuery</function> and <function>PQendcopy</function>
will not block but instead return an error if they need to be called will not block but instead return an error if they need to be called
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment