Equivalent of PQresultErrorField for PGconn?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Equivalent of PQresultErrorField for PGconn?
Date: 2003-07-28 07:44:27
Message-ID: Pine.LNX.4.56.0307271721000.1197@krusty.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2003-07-28 07:46:39 Some macros for error field codes
Previous Message Christopher Kings-Lynne 2003-07-28 06:49:02 developer.postgresql.org is broken