33{
34
35#line 14 "test_informix.pgc"
36 int i = 14 , loopcount ;
37
38#line 14 "test_informix.pgc"
39
40
41#line 15 "test_informix.pgc"
43
44#line 15 "test_informix.pgc"
45
46
47#line 16 "test_informix.pgc"
49
50#line 16 "test_informix.pgc"
51
52
54
55#line 19 "test_informix.pgc"
56
57
58 {
ECPGconnect(__LINE__, 1,
"ecpg1_regression" , NULL, NULL , NULL, 0);
59#line 21 "test_informix.pgc"
60
62#line 21 "test_informix.pgc"
63
65
66 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"create table test ( i int primary key , j int , c text )",
ECPGt_EOIT,
ECPGt_EORT);
67#line 24 "test_informix.pgc"
68
70#line 24 "test_informix.pgc"
71
72
73
75 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"insert into test ( i , j , c ) values ( 7 , $1 , 'test ' )",
78#line 28 "test_informix.pgc"
79
81#line 28 "test_informix.pgc"
82
84#line 29 "test_informix.pgc"
85
87#line 29 "test_informix.pgc"
88
89
90
91 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"insert into test ( i , j , c ) values ( 7 , 12 , 'a' )",
ECPGt_EOIT,
ECPGt_EORT);
92#line 32 "test_informix.pgc"
93
95#line 32 "test_informix.pgc"
96
99#line 34 "test_informix.pgc"
100
102#line 34 "test_informix.pgc"
103
104
105 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"insert into test ( i , j , c ) values ( $1 , 1 , 'a ' )",
108#line 36 "test_informix.pgc"
109
111#line 36 "test_informix.pgc"
112
114#line 37 "test_informix.pgc"
115
117#line 37 "test_informix.pgc"
118
119
120
122#line 40 "test_informix.pgc"
123
125#line 40 "test_informix.pgc"
126
128#line 41 "test_informix.pgc"
129
131#line 41 "test_informix.pgc"
132
133
134
136#line 44 "test_informix.pgc"
137
139#line 44 "test_informix.pgc"
140
143#line 46 "test_informix.pgc"
144
146#line 46 "test_informix.pgc"
147
148
151
152#line 49 "test_informix.pgc"
153
155#line 49 "test_informix.pgc"
156
157#line 49 "test_informix.pgc"
158
161
163
164 for (loopcount = 0; loopcount < 100; loopcount++)
165 {
173#line 57 "test_informix.pgc"
174
176#line 57 "test_informix.pgc"
177
178 if (
sqlca.sqlcode == 100)
break;
179
182 else
183 {
185
188 }
189 }
190
194 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"delete from test where i = $1 :: decimal",
197#line 74 "test_informix.pgc"
198
200#line 74 "test_informix.pgc"
201
203
205#line 77 "test_informix.pgc"
206
208#line 77 "test_informix.pgc"
209
211
213#line 80 "test_informix.pgc"
214
216#line 80 "test_informix.pgc"
217
219
221#line 83 "test_informix.pgc"
222
224#line 83 "test_informix.pgc"
225
227#line 84 "test_informix.pgc"
228
230#line 84 "test_informix.pgc"
231
233#line 85 "test_informix.pgc"
234
236#line 85 "test_informix.pgc"
237
238
240#line 87 "test_informix.pgc"
241
243#line 87 "test_informix.pgc"
244
245
246 return 0;
247}
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,...)
void ECPGset_var(int number, void *pointer, int lineno)
bool ECPGtrans(int lineno, const char *connection_name, const char *transaction)