BUG #3961: ecpg lacks SQLSTATE macro definition - Mailing list pgsql-bugs

From Christoph Dalitz
Subject BUG #3961: ecpg lacks SQLSTATE macro definition
Date
Msg-id 200802141109.m1EB9BIh099592@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #3961: ecpg lacks SQLSTATE macro definition
List pgsql-bugs
The following bug has been logged online:

Bug reference:      3961
Logged by:          Christoph Dalitz
Email address:      christoph.dalitz@hs-niederrhein.de
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

pgsql-bugs by date:

Previous
From: "Anto"
Date:
Subject: BUG #3960: initdb.log
Next
From: Magnus Hagander
Date:
Subject: Re: BUG #3960: initdb.log