aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2008-02-14 12:38:27 +0000
committerMichael Meskes <meskes@postgresql.org>2008-02-14 12:38:27 +0000
commit1d3c2343b84eea3010ba1609134192af6ebab437 (patch)
treea9bc45e16cf4a9709d46df2c7330ed34620e60a2 /src
parent6fc5458461a112515ec703dbff2e0e0ed43bd46d (diff)
downloadpostgresql-1d3c2343b84eea3010ba1609134192af6ebab437.tar.gz
postgresql-1d3c2343b84eea3010ba1609134192af6ebab437.zip
Added SQLSTATE macro closing bug #3961.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/include/ecpglib.h5
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 */