From: Michael Meskes Date: Thu, 14 Feb 2008 12:38:27 +0000 (+0000) Subject: Added SQLSTATE macro closing bug #3961. X-Git-Tag: REL8_2_7~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d3c2343b84eea3010ba1609134192af6ebab437;p=thirdparty%2Fpostgresql.git Added SQLSTATE macro closing bug #3961. --- diff --git a/src/interfaces/ecpg/include/ecpglib.h b/src/interfaces/ecpg/include/ecpglib.h index ab18b7e5f98..f809498d144 100644 --- a/src/interfaces/ecpg/include/ecpglib.h +++ b/src/interfaces/ecpg/include/ecpglib.h @@ -1,7 +1,7 @@ /* * this is a small part of c.h since we don't want to leak all postgres * definitions into ecpg programs - * $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpglib.h,v 1.70 2006/10/04 00:30:11 momjian Exp $ + * $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpglib.h,v 1.70.2.1 2008/02/14 12:38:27 meskes Exp $ */ #ifndef _ECPGLIB_H @@ -61,7 +61,8 @@ void sqlprint(void); /* define this for simplicity as well as compatibility */ -#define SQLCODE sqlca.sqlcode +#define SQLCODE sqlca.sqlcode +#define SQLSTATE sqlca.sqlstate /* dynamic SQL */