mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Document that libpq's PQgetResult() should be called after a fatal error
to fully process errors.
This commit is contained in:
@@ -3846,6 +3846,15 @@ PGresult *PQgetResult(PGconn *conn);
|
|||||||
active and the necessary response data has not yet been read by
|
active and the necessary response data has not yet been read by
|
||||||
<function>PQconsumeInput</function>.
|
<function>PQconsumeInput</function>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<note>
|
||||||
|
<para>
|
||||||
|
Even when <function>PQresultStatus</function> indicates a fatal
|
||||||
|
error, <function>PQgetResult</function> should be called until it
|
||||||
|
returns a null pointer to allow <application>libpq</> to
|
||||||
|
process the error information completely.
|
||||||
|
</para>
|
||||||
|
</note>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
Reference in New Issue
Block a user