summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/include/sqlda.h
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2010-01-05 16:38:23 +0000
committerMichael Meskes <meskes@postgresql.org>2010-01-05 16:38:23 +0000
commit6d4a351fcbb780b89c638f48b81ab34d92c00ba8 (patch)
treea69e6cbb44eab6f6435dffde29637338d4d6be1b /src/interfaces/ecpg/include/sqlda.h
parentaf322a8a3ef28d9b0425238353a8bffa94bfaa47 (diff)
Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add sqlda support to
ecpg in both native and compatiblity mode.
Diffstat (limited to 'src/interfaces/ecpg/include/sqlda.h')
-rw-r--r--src/interfaces/ecpg/include/sqlda.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/include/sqlda.h b/src/interfaces/ecpg/include/sqlda.h
index 75e2ff8553d..3eaa7b45565 100644
--- a/src/interfaces/ecpg/include/sqlda.h
+++ b/src/interfaces/ecpg/include/sqlda.h
@@ -1,3 +1,22 @@
/*
- * $PostgreSQL: pgsql/src/interfaces/ecpg/include/sqlda.h,v 1.4 2009/06/11 14:49:13 momjian Exp $
+ * $PostgreSQL: pgsql/src/interfaces/ecpg/include/sqlda.h,v 1.5 2010/01/05 16:38:23 meskes Exp $
*/
+
+#ifndef ECPG_SQLDA_H
+#define ECPG_SQLDA_H
+
+#ifdef _ECPG_INFORMIX_H
+
+#include "sqlda-compat.h"
+typedef struct sqlvar_compat sqlvar_t;
+typedef struct sqlda_compat sqlda_t;
+
+#else
+
+#include "sqlda-native.h"
+typedef struct sqlvar_struct sqlvar_t;
+typedef struct sqlda_struct sqlda_t;
+
+#endif
+
+#endif /* ECPG_SQLDA_H */