From 1d3c2343b84eea3010ba1609134192af6ebab437 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Thu, 14 Feb 2008 12:38:27 +0000 Subject: [PATCH] Added SQLSTATE macro closing bug #3961. --- src/interfaces/ecpg/include/ecpglib.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 */