Abhijit Menon-Sen <ams@oryx.com> writes:
> At 2004-10-16 18:41:05 -0400, tgl@sss.pgh.pa.us wrote:
>> I think the cleanest solution is probably to add a state flag indicating
>> whether ParseComplete should generate a PGresult or not.
> Like the appended (incremental) patch?
Not exactly --- the way you've got this set up, a failed PQprepare will
leave a booby trap for the next operation. The flag has got to be reset
on command send, not on receipt of a success response. I'll find a
better place to do it.
regards, tom lane