7#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
35 strcpy(msg,
"connect");
36 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0);
37#line 16 "twophase.pgc"
40#line 16 "twophase.pgc"
43#line 17 "twophase.pgc"
46#line 17 "twophase.pgc"
49 strcpy(msg,
"create");
51#line 20 "twophase.pgc"
54#line 20 "twophase.pgc"
57 strcpy(msg,
"commit");
59#line 23 "twophase.pgc"
62#line 23 "twophase.pgc"
67#line 26 "twophase.pgc"
70#line 26 "twophase.pgc"
73 strcpy(msg,
"insert");
75#line 29 "twophase.pgc"
78#line 29 "twophase.pgc"
81 strcpy(msg,
"prepare transaction");
82 {
ECPGtrans(__LINE__, NULL,
"prepare transaction 'ecpg_twophase'");
83#line 32 "twophase.pgc"
86#line 32 "twophase.pgc"
89 strcpy(msg,
"commit prepared");
90 {
ECPGtrans(__LINE__, NULL,
"commit prepared 'ecpg_twophase'");
91#line 35 "twophase.pgc"
94#line 35 "twophase.pgc"
99#line 38 "twophase.pgc"
102#line 38 "twophase.pgc"
105 strcpy(msg,
"disconnect");
107#line 41 "twophase.pgc"
110#line 41 "twophase.pgc"
bool ECPGsetcommit(int lineno, const char *mode, const char *connection_name)
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)