25 {
26
27
28
29
30#line 9 "fetch.pgc"
32
33#line 10 "fetch.pgc"
34 int i , count = 1 , loopcount ;
35
36#line 11 "fetch.pgc"
37
38
40 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0); }
41#line 14 "fetch.pgc"
42
43
44
45#line 16 "fetch.pgc"
46
47
48#line 17 "fetch.pgc"
49
50
52#line 19 "fetch.pgc"
53
55#line 19 "fetch.pgc"
56
58#line 19 "fetch.pgc"
59
60
62#line 21 "fetch.pgc"
63
65#line 21 "fetch.pgc"
66
68#line 21 "fetch.pgc"
69
71#line 22 "fetch.pgc"
72
74#line 22 "fetch.pgc"
75
77#line 22 "fetch.pgc"
78
80#line 23 "fetch.pgc"
81
83#line 23 "fetch.pgc"
84
86#line 23 "fetch.pgc"
87
89#line 24 "fetch.pgc"
90
92#line 24 "fetch.pgc"
93
95#line 24 "fetch.pgc"
96
97
98
99#line 26 "fetch.pgc"
100
101
103#line 28 "fetch.pgc"
104
106#line 28 "fetch.pgc"
107
109#line 28 "fetch.pgc"
110
111
112
113#line 30 "fetch.pgc"
114
115 for (loopcount = 0; loopcount < 100; loopcount++) {
121#line 32 "fetch.pgc"
122
124#line 32 "fetch.pgc"
125
127#line 32 "fetch.pgc"
128
130#line 32 "fetch.pgc"
131
133 }
134
135
136#line 36 "fetch.pgc"
137
139#line 37 "fetch.pgc"
140
142#line 37 "fetch.pgc"
143
145#line 37 "fetch.pgc"
146
147
149 ECPGt_int,&(count),(
long)1,(
long)1,
sizeof(
int),
155#line 39 "fetch.pgc"
156
158#line 39 "fetch.pgc"
159
161#line 39 "fetch.pgc"
162
164
166#line 42 "fetch.pgc"
167
169#line 42 "fetch.pgc"
170
172#line 42 "fetch.pgc"
173
174
175
176#line 44 "fetch.pgc"
177
178
179 {
ECPGdo(__LINE__, 0, 1, NULL, 0,
ECPGst_normal,
"declare D cursor for select * from My_Table where Item1 = $1",
182#line 46 "fetch.pgc"
183
185#line 46 "fetch.pgc"
186
188#line 46 "fetch.pgc"
189
190
196#line 48 "fetch.pgc"
197
199#line 48 "fetch.pgc"
200
202#line 48 "fetch.pgc"
203
205
207#line 51 "fetch.pgc"
208
210#line 51 "fetch.pgc"
211
213#line 51 "fetch.pgc"
214
215
217#line 53 "fetch.pgc"
218
220#line 53 "fetch.pgc"
221
223#line 53 "fetch.pgc"
224
225
227#line 55 "fetch.pgc"
228
230#line 55 "fetch.pgc"
231
233#line 55 "fetch.pgc"
234
235
236 return 0;
237}
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,...)