summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/include/ecpglib.h
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2008-02-15 12:11:02 +0000
committerMichael Meskes <meskes@postgresql.org>2008-02-15 12:11:02 +0000
commitbea0466d9dc099f1fda28f5714e83ad9a1b23034 (patch)
treec6a7910b0dd2a163fece5c8efaa1b2b9e0407c25 /src/interfaces/ecpg/include/ecpglib.h
parentca65da88d5be79463d34185502d61dba50238331 (diff)
Changed the way symbols are defined in C in INFORMIX mode.
Added SQLSTATE macro closing bug #3961. EXECUTE can return NOT FOUND so it should be checked here too.
Diffstat (limited to 'src/interfaces/ecpg/include/ecpglib.h')
-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 18cab5029e9..6034a0901f5 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.74 2008/01/13 11:53:16 meskes Exp $
+ * $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpglib.h,v 1.74.2.1 2008/02/15 12:11:02 meskes Exp $
*/
#ifndef _ECPGLIB_H
@@ -58,7 +58,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 */