"Murray S. Kucherawy" <[email protected]> writes:
> From: Tom Lane [mailto:[email protected]]
>> This is complete nonsense. If you followed the documented method for
>> using PQgetResult -- ie, keep calling it till it returns NULL, rather
>> than assuming there will be a specific number of results --- then
>> PQstatus would show you the bad status afterwards.
> Your assertion here of "Read the result set to exhaustion, THEN check
> connection status to see if it was bad to begin with," can be politely
> described as counter-intuitive.
[ shrug... ] I guess if your intuition is that PQstatus should be
expected to intuit the failure of a call that hasn't happened yet,
then it's counter-intuitive.
regards, tom lane
--
Sent via pgsql-bugs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs