projects
/
users
/
hanada
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad44d50
)
Document that libpq's PQgetResult() should be called after a fatal error
author
Bruce Momjian
<
[email protected]
>
Fri, 11 Mar 2011 10:55:13 +0000
(
05:55
-0500)
committer
Bruce Momjian
<
[email protected]
>
Fri, 11 Mar 2011 10:55:13 +0000
(
05:55
-0500)
to fully process errors.
doc/src/sgml/libpq.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/libpq.sgml
b/doc/src/sgml/libpq.sgml
index 49edc51dbaca20e5f5eacd77450cade4309e3b2e..59b4011b3f6c317608df77864eeb669af9cf7178 100644
(file)
--- a/
doc/src/sgml/libpq.sgml
+++ b/
doc/src/sgml/libpq.sgml
@@
-3846,6
+3846,15
@@
PGresult *PQgetResult(PGconn *conn);
active and the necessary response data has not yet been read by
<function>PQconsumeInput</function>.
</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>
</varlistentry>
</variablelist>