7#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
12#ifndef POSTGRES_SQLCA_H
13#define POSTGRES_SQLCA_H
16#if defined(WIN32) || defined(__CYGWIN__)
17#define PGDLLIMPORT __declspec (dllimport)
23#define SQLERRMC_LEN 150
69#ifndef POSTGRES_ECPG_INTERNAL
70#define sqlca (*ECPGget_sqlca())
102#line 10 "code100.pgc"
108 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0); }
109#line 15 "code100.pgc"
114#line 20 "code100.pgc"
117 {
ECPGtrans(__LINE__, NULL,
"commit work");}
118#line 22 "code100.pgc"
123 { {
ECPGdo(__LINE__, 0, 1, NULL, 0,
ECPGst_normal,
"insert into test ( payload , index ) values ( 0 , $1 )",
126#line 28 "code100.pgc"
130 {
ECPGtrans(__LINE__, NULL,
"commit work");}
131#line 31 "code100.pgc"
136#line 35 "code100.pgc"
141#line 38 "code100.pgc"
146#line 41 "code100.pgc"
151#line 44 "code100.pgc"
154 {
ECPGtrans(__LINE__, NULL,
"commit work");}
155#line 46 "code100.pgc"
160#line 49 "code100.pgc"
bool ECPGdisconnect(int lineno, const char *connection_name)
bool ECPGconnect(int lineno, int c, const char *name, const char *user, const char *passwd, const char *connection_name, int autocommit)
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 ECPGtrans(int lineno, const char *connection_name, const char *transaction)
struct sqlca_t * ECPGget_sqlca(void)
struct sqlca_t::@168 sqlerrm
char sqlerrmc[SQLERRMC_LEN]