diff options
author | Michael Meskes <meskes@postgresql.org> | 2008-02-14 12:38:27 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2008-02-14 12:38:27 +0000 |
commit | 1d3c2343b84eea3010ba1609134192af6ebab437 (patch) | |
tree | a9bc45e16cf4a9709d46df2c7330ed34620e60a2 /src | |
parent | 6fc5458461a112515ec703dbff2e0e0ed43bd46d (diff) | |
download | postgresql-1d3c2343b84eea3010ba1609134192af6ebab437.tar.gz postgresql-1d3c2343b84eea3010ba1609134192af6ebab437.zip |
Added SQLSTATE macro closing bug #3961.
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/ecpg/include/ecpglib.h | 5 |
1 files 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 */ |