3 static char *
_Cn1 =
"sensorcursor";
static _SQCURSOR *
_SQ1 = 0;
4 #line 1 "get_sensor_list.ec"
9 #line 2 "get_sensor_list.ec"
10 #line 1 "/usr/informix/incl/esql/sqlca.h"
84 #define SQLNOTFOUND 100
87 #line 3 "get_sensor_list.ec"
97 #line 9 "get_sensor_list.ec"
100 extern struct eens_rec
117 #line 27 "get_sensor_list.ec"
129 #line 35 "get_sensor_list.ec"
131 #line 35 "get_sensor_list.ec"
132 static struct sqlvar_struct _sqibind[] =
134 { 100, 50, 0, 0, 0, 0, 0, 0, 0 },
135 #line 35 "get_sensor_list.ec"
137 static struct sqlda _SD0 = { 1, _sqibind, 0, 1, 0 };
138 #line 35 "get_sensor_list.ec"
140 #line 35 "get_sensor_list.ec"
142 #line 35 "get_sensor_list.ec"
143 _iqdcopen(
_SQ1, &_SD0, (
char *)0, (
char *)0, 1);
144 #line 35 "get_sensor_list.ec"
155 #line 42 "get_sensor_list.ec"
157 #line 42 "get_sensor_list.ec"
158 static struct sqlvar_struct _sqobind[] =
160 { 100, 6, 0, 0, 0, 0, 0, 0, 0 },
161 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
162 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
163 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
164 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
165 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
166 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
167 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
168 { 102,
sizeof((bens_rec).post), 0, 0, 0, 0, 0, 0, 0 },
169 { 100, 9, 0, 0, 0, 0, 0, 0, 0 },
170 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
171 #line 42 "get_sensor_list.ec"
173 static struct sqlda _SD0 = { 11, _sqobind, 0, 11, 0 };
174 static _FetchSpec _FS1 = { 0, 1, 0 };
175 #line 42 "get_sensor_list.ec"
176 _sqobind[0].sqldata = (bens_rec).
id;
177 #line 42 "get_sensor_list.ec"
178 _sqobind[1].sqldata = (bens_rec).pe1;
179 #line 42 "get_sensor_list.ec"
180 _sqobind[2].sqldata = (bens_rec).pe2;
181 #line 42 "get_sensor_list.ec"
182 _sqobind[3].sqldata = (bens_rec).dur;
183 #line 42 "get_sensor_list.ec"
184 _sqobind[4].sqldata = (bens_rec).t;
185 #line 42 "get_sensor_list.ec"
186 _sqobind[5].sqldata = (bens_rec).s;
187 #line 42 "get_sensor_list.ec"
188 _sqobind[6].sqldata = (bens_rec).e;
189 #line 42 "get_sensor_list.ec"
190 _sqobind[7].sqldata = (bens_rec).p;
191 #line 42 "get_sensor_list.ec"
192 _sqobind[8].sqldata = (
char *) &(bens_rec).post;
193 #line 42 "get_sensor_list.ec"
194 _sqobind[9].sqldata = (bens_rec).init;
195 #line 42 "get_sensor_list.ec"
196 _sqobind[10].sqldata = (bens_rec).ok;
197 #line 42 "get_sensor_list.ec"
199 #line 42 "get_sensor_list.ec"
200 _iqcftch(
_SQ1, (
struct sqlda *)0, &_SD0, (
char *)0, &_FS1);
201 #line 42 "get_sensor_list.ec"
210 memcpy(&sens_record[
i],&bens_rec,
sizeof(
struct eens_rec));
217 #line 54 "get_sensor_list.ec"
219 #line 54 "get_sensor_list.ec"
220 #line 54 "get_sensor_list.ec"
222 #line 54 "get_sensor_list.ec"
224 #line 54 "get_sensor_list.ec"
int get_sensor_list(char *hb5, struct sens_rec *sens_record)
struct sqlca_s::sqlcaw_s sqlwarn