Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 06711de

Browse files
committed
Document that libpq's PQgetResult() should be called after a fatal error
to fully process errors.
1 parent ad44d50 commit 06711de

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/src/sgml/libpq.sgml

+9
Original file line numberDiff line numberDiff line change
@@ -3846,6 +3846,15 @@ PGresult *PQgetResult(PGconn *conn);
38463846
active and the necessary response data has not yet been read by
38473847
<function>PQconsumeInput</function>.
38483848
</para>
3849+
3850+
<note>
3851+
<para>
3852+
Even when <function>PQresultStatus</function> indicates a fatal
3853+
error, <function>PQgetResult</function> should be called until it
3854+
returns a null pointer to allow <application>libpq</> to
3855+
process the error information completely.
3856+
</para>
3857+
</note>
38493858
</listitem>
38503859
</varlistentry>
38513860
</variablelist>

0 commit comments

Comments
 (0)