The following bug has been logged online: Bug reference: 3961 Logged by: Christoph Dalitz Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.6 Operating system: Linux Description: ecpg lacks SQLSTATE macro definition Details:
While ecpg defines the (deprecated) SQLCODE, it does not define the macro SQLSTATE, even though the documentation say, that this latter macro should be used and which values it can take. Please add a macro definition #define SQLSTATE sqlca.sqlstate in ecpglib.h like for SQLSTATE to be compatible with the SQL standard. Thanks, Christoph ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend