diff options
author | Michael Meskes <meskes@postgresql.org> | 2010-01-05 16:38:23 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2010-01-05 16:38:23 +0000 |
commit | 6d4a351fcbb780b89c638f48b81ab34d92c00ba8 (patch) | |
tree | a69e6cbb44eab6f6435dffde29637338d4d6be1b /src/interfaces/ecpg/ecpglib/extern.h | |
parent | af322a8a3ef28d9b0425238353a8bffa94bfaa47 (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/ecpglib/extern.h')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/extern.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/ecpglib/extern.h b/src/interfaces/ecpg/ecpglib/extern.h index dab33e337b8..6a68bc9f155 100644 --- a/src/interfaces/ecpg/ecpglib/extern.h +++ b/src/interfaces/ecpg/ecpglib/extern.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/extern.h,v 1.35 2009/05/20 16:13:18 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/extern.h,v 1.36 2010/01/05 16:38:23 meskes Exp $ */ #ifndef _ECPG_LIB_EXTERN_H #define _ECPG_LIB_EXTERN_H @@ -6,6 +6,8 @@ #include "postgres_fe.h" #include "libpq-fe.h" #include "sqlca.h" +#include "sqlda-native.h" +#include "sqlda-compat.h" #include "ecpg_config.h" #ifndef CHAR_BIT #include <limits.h> @@ -129,6 +131,7 @@ bool ecpg_init(const struct connection *, const char *, const int); char *ecpg_strdup(const char *, int); const char *ecpg_type_name(enum ECPGttype); int ecpg_dynamic_type(Oid); +int sqlda_dynamic_type(Oid, enum COMPAT_MODE); void ecpg_free_auto_mem(void); void ecpg_clear_auto_mem(void); @@ -149,6 +152,11 @@ void ecpg_log(const char *format,...); bool ecpg_auto_prepare(int, const char *, const int, char **, const char *); void ecpg_init_sqlca(struct sqlca_t * sqlca); +struct sqlda_compat *ecpg_build_compat_sqlda(int, PGresult *, int, enum COMPAT_MODE); +void ecpg_set_compat_sqlda(int, struct sqlda_compat **, const PGresult *, int, enum COMPAT_MODE); +struct sqlda_struct *ecpg_build_native_sqlda(int, PGresult *, int, enum COMPAT_MODE); +void ecpg_set_native_sqlda(int, struct sqlda_struct **, const PGresult *, int, enum COMPAT_MODE); + /* SQLSTATE values generated or processed by ecpglib (intentionally * not exported -- users should refer to the codes directly) */ |