Equivalent of PQresultErrorField for PGconn? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Equivalent of PQresultErrorField for PGconn?
Date
Msg-id Pine.LNX.4.56.0307271721000.1197@krusty.credativ.de
Whole thread Raw
Responses Re: Equivalent of PQresultErrorField for PGconn?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I seem to be missing an equivalent of PQresultErrorField() that operates
on a PGconn object (like PQerrorMessage() does).  This would be useful to
detect errors that occur outside of a statement execution.

(One particular case I'm looking at is the message "fe_sendauth: no
password supplied", which clients look at to detect if they need to send a
password.)

-- 
Peter Eisentraut   peter_e@gmx.net


pgsql-hackers by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: developer.postgresql.org is broken
Next
From: Peter Eisentraut
Date:
Subject: Some macros for error field codes