30{
31 char msg[128];
32
34
35 strcpy(msg, "connect");
36 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0);
37#line 16 "twophase.pgc"
38
40#line 16 "twophase.pgc"
41
43#line 17 "twophase.pgc"
44
46#line 17 "twophase.pgc"
47
48
49 strcpy(msg, "create");
51#line 20 "twophase.pgc"
52
54#line 20 "twophase.pgc"
55
56
57 strcpy(msg, "commit");
59#line 23 "twophase.pgc"
60
62#line 23 "twophase.pgc"
63
64
65 strcpy(msg, "begin");
67#line 26 "twophase.pgc"
68
70#line 26 "twophase.pgc"
71
72
73 strcpy(msg, "insert");
75#line 29 "twophase.pgc"
76
78#line 29 "twophase.pgc"
79
80
81 strcpy(msg, "prepare transaction");
82 {
ECPGtrans(__LINE__, NULL,
"prepare transaction 'ecpg_twophase'");
83#line 32 "twophase.pgc"
84
86#line 32 "twophase.pgc"
87
88
89 strcpy(msg, "commit prepared");
90 {
ECPGtrans(__LINE__, NULL,
"commit prepared 'ecpg_twophase'");
91#line 35 "twophase.pgc"
92
94#line 35 "twophase.pgc"
95
96
97 strcpy(msg, "drop");
99#line 38 "twophase.pgc"
100
102#line 38 "twophase.pgc"
103
104
105 strcpy(msg, "disconnect");
107#line 41 "twophase.pgc"
108
110#line 41 "twophase.pgc"
111
112
113 return 0;
114}
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)