12 #include "ecpg_config.h"
31 #if !(defined(true) && defined(false))
32 typedef unsigned char bool;
36 #define true ((bool) 1)
40 #define false ((bool) 0)
53 bool ECPGstatus(
int lineno,
const char *connection_name);
55 bool ECPGsetconn(
int lineno,
const char *connection_name);
57 const char *passwd,
const char *connection_name,
int autocommit);
60 const int st,
const char *query,...);
61 bool ECPGtrans(
int lineno,
const char *connection_name,
const char *transaction);
76 #define SQLCODE sqlca.sqlcode
77 #define SQLSTATE sqlca.sqlstate
93 const char *connection_name,
const char *stmt_name,...);
95 void ECPGset_var(
int number,
void *pointer,
int lineno);
101 #ifdef ENABLE_THREAD_SAFETY
102 void ecpg_pthreads_init(
void);
void ECPGset_var(int number, void *pointer, int lineno)
PGTransactionStatusType ECPGtransactionStatus(const char *connection_name)
bool ECPGdeallocate_desc(int line, const char *name)
bool ECPGdeallocate_all(int lineno, int compat, const char *connection_name)
bool ECPGget_desc(int lineno, const char *desc_name, int index,...)
void ECPGdebug(int n, FILE *dbgs)
void ECPGset_noind_null(enum ECPGttype type, void *ptr)
bool ECPGsetconn(int lineno, const char *connection_name)
void ECPGfree_auto_mem(void)
PGconn * ECPGget_PGconn(const char *connection_name)
bool ECPGtrans(int lineno, const char *connection_name, const char *transaction)
bool ECPGallocate_desc(int line, const char *name)
bool ECPGis_noind_null(enum ECPGttype type, const void *ptr)
void * ECPGget_var(int number)
bool ECPGsetcommit(int lineno, const char *mode, const char *connection_name)
bool ECPGstatus(int lineno, const char *connection_name)
bool ECPGprepare(int lineno, const char *connection_name, const bool questionmarks, const char *name, const char *variable)
bool ECPGset_desc_header(int lineno, const char *desc_name, int count)
bool ECPGdisconnect(int lineno, const char *connection_name)
char * ECPGprepared_statement(const char *connection_name, const char *name, int lineno)
bool ECPGconnect(int lineno, int c, const char *name, const char *user, const char *passwd, const char *connection_name, int autocommit)
bool ECPGdo_descriptor(int line, const char *connection, const char *descriptor, const char *query)
bool ECPGdescribe(int line, int compat, bool input, const char *connection_name, const char *stmt_name,...)
bool ECPGdeallocate(int lineno, int c, const char *connection_name, const char *name)
bool ECPGdo(const int lineno, const int compat, const int force_indicator, const char *connection_name, const bool questionmarks, const int st, const char *query,...)
bool ECPGset_desc(int lineno, const char *desc_name, int index,...)
bool ECPGget_desc_header(int lineno, const char *desc_name, int *count)
static PgChecksumMode mode