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

Lines changed: 9 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy