3 static const char _Cn1[] =
"sensorcursor";
4 #line 1 "get_sensor_list.ec"
9 #line 2 "get_sensor_list.ec"
11 #line 2 "get_sensor_list.ec"
12 #line 1 "/opt/informix/incl/esql/sqlca.h"
86 #define SQLNOTFOUND 100
90 #define sqlca ifmxsqlca
102 extern int4 * ifx_sqlcode(
void);
103 extern struct sqlca_s * ifx_sqlca(
void);
105 #define SQLCODE (*(ifx_sqlcode()))
106 #define SQLSTATE ((char *)(ifx_sqlstate()))
107 #define sqlca (*(ifx_sqlca()))
116 #line 103 "/opt/informix/incl/esql/sqlca.h"
117 #line 3 "get_sensor_list.ec"
128 #line 10 "get_sensor_list.ec"
129 #line 11 "get_sensor_list.ec"
131 extern struct eens_rec
165 #line 45 "get_sensor_list.ec"
177 #line 53 "get_sensor_list.ec"
179 #line 53 "get_sensor_list.ec"
180 static ifx_sqlvar_t _sqibind[] =
182 { 100, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
183 #line 53 "get_sensor_list.ec"
185 static ifx_sqlda_t _SD0 = { 1, _sqibind, {0}, 1, 0 };
186 #line 53 "get_sensor_list.ec"
188 sqli_curs_open(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn1, 768), &_SD0, (
char *)0, (
struct value *)0, 1, 0);
189 #line 53 "get_sensor_list.ec"
201 #line 61 "get_sensor_list.ec"
203 #line 61 "get_sensor_list.ec"
204 static ifx_sqlvar_t _sqobind[] =
206 { 100, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
207 { 100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
208 { 100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
209 { 100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
210 { 100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
211 { 100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
212 { 100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
213 { 100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
214 { 100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
215 { 100, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
216 { 100, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
217 { 102,
sizeof((bens_rec).post), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
218 { 100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
219 { 100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
220 { 100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
221 { 102,
sizeof((bens_rec).obstime), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
222 { 100, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
223 { 100, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
224 { 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
225 { 100, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
226 { 100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
227 { 100, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
228 { 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
229 { 100, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
230 { 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
231 { 100, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
232 { 100, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
233 { 100, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
234 #line 61 "get_sensor_list.ec"
236 static ifx_sqlda_t _SD0 = { 28, _sqobind, {0}, 28, 0 };
237 static _FetchSpec _FS1 = { 0, 1, 0 };
238 #line 61 "get_sensor_list.ec"
239 _sqobind[0].sqldata = (bens_rec).
id;
240 #line 61 "get_sensor_list.ec"
241 _sqobind[1].sqldata = (bens_rec).pe1;
242 #line 61 "get_sensor_list.ec"
243 _sqobind[2].sqldata = (bens_rec).pe2;
244 #line 61 "get_sensor_list.ec"
245 _sqobind[3].sqldata = (bens_rec).dur;
246 #line 61 "get_sensor_list.ec"
247 _sqobind[4].sqldata = (bens_rec).t;
248 #line 61 "get_sensor_list.ec"
249 _sqobind[5].sqldata = (bens_rec).s;
250 #line 61 "get_sensor_list.ec"
251 _sqobind[6].sqldata = (bens_rec).e;
252 #line 61 "get_sensor_list.ec"
253 _sqobind[7].sqldata = (bens_rec).p;
254 #line 61 "get_sensor_list.ec"
255 _sqobind[8].sqldata = (bens_rec).type;
256 #line 61 "get_sensor_list.ec"
257 _sqobind[9].sqldata = (bens_rec).des;
258 #line 61 "get_sensor_list.ec"
259 _sqobind[10].sqldata = (bens_rec).det;
260 #line 61 "get_sensor_list.ec"
261 _sqobind[11].sqldata = (
char *) &(bens_rec).post;
262 #line 61 "get_sensor_list.ec"
263 _sqobind[12].sqldata = (bens_rec).new_report;
264 #line 61 "get_sensor_list.ec"
265 _sqobind[13].sqldata = (bens_rec).active;
266 #line 61 "get_sensor_list.ec"
267 _sqobind[14].sqldata = (bens_rec).
rfs;
268 #line 61 "get_sensor_list.ec"
269 _sqobind[15].sqldata = (
char *) &(bens_rec).obstime;
270 #line 61 "get_sensor_list.ec"
271 _sqobind[16].sqldata = (bens_rec).prod;
272 #line 61 "get_sensor_list.ec"
273 _sqobind[17].sqldata = (bens_rec).prod2ary;
274 #line 61 "get_sensor_list.ec"
275 _sqobind[18].sqldata = (bens_rec).obsag;
276 #line 61 "get_sensor_list.ec"
277 _sqobind[19].sqldata = (bens_rec).obsloc;
278 #line 61 "get_sensor_list.ec"
279 _sqobind[20].sqldata = (bens_rec).prov_avail;
280 #line 61 "get_sensor_list.ec"
281 _sqobind[21].sqldata = (bens_rec).final_avail;
282 #line 61 "get_sensor_list.ec"
283 _sqobind[22].sqldata = (bens_rec).ownag;
284 #line 61 "get_sensor_list.ec"
285 _sqobind[23].sqldata = (bens_rec).ownloc;
286 #line 61 "get_sensor_list.ec"
287 _sqobind[24].sqldata = (bens_rec).maintag;
288 #line 61 "get_sensor_list.ec"
289 _sqobind[25].sqldata = (bens_rec).maintloc;
290 #line 61 "get_sensor_list.ec"
291 _sqobind[26].sqldata = (bens_rec).init;
292 #line 61 "get_sensor_list.ec"
293 _sqobind[27].sqldata = (bens_rec).dbsource;
294 sqli_curs_fetch(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn1, 768), (ifx_sqlda_t *)0, &_SD0, (
char *)0, &_FS1);
295 #line 61 "get_sensor_list.ec"
317 memcpy(&sens_record[
j],&bens_rec,
sizeof(
struct eens_rec));
325 #line 87 "get_sensor_list.ec"
327 #line 87 "get_sensor_list.ec"
328 sqli_curs_close(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn1, 768));
329 #line 87 "get_sensor_list.ec"
341 #line 96 "get_sensor_list.ec"
int get_sensor_list(char *hb5, struct sens_rec *sens_record)
struct sqlca_s ifx_sqlca_t
struct sqlca_s::sqlcaw_s sqlwarn