Hi Murray

> See http://archives.postgresql.org/pgsql-bugs/2011-01/msg00097.php for my bug 
> report and the ensuing conversation.

After reading though the discussion, another option might more elegant: 
If PQresultStatus() returns PGRES_FATAL_ERROR, we can call 
PQconsumeInput() to be sure, the call to PQStatus() knowns what's going on:

case PGRES_FATAL_ERROR:

+       PQconsumeInput( (PGconn*) handle->generic );
        if( PQstatus( (PGconn*) handle->generic ) != CONNECTION_OK )

Could you test if this has the desired effect?


Norbert

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libopendbx-devel mailing list
libopendbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
http://www.linuxnetworks.de/doc/index.php/OpenDBX

Reply via email to