3 static const char _Cn1[] =
"hb5cursor";
4 #line 1 "hb5_search.ec"
9 #line 2 "hb5_search.ec"
11 #line 2 "hb5_search.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 "hb5_search.ec"
123 #line 5 "hb5_search.ec"
124 #line 6 "hb5_search.ec"
148 #line 30 "hb5_search.ec"
167 #line 45 "hb5_search.ec"
169 #line 45 "hb5_search.ec"
170 static ifx_sqlvar_t _sqibind[] =
172 { 100, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
173 #line 45 "hb5_search.ec"
175 static ifx_sqlda_t _SD0 = { 1, _sqibind, {0}, 1, 0 };
176 #line 45 "hb5_search.ec"
178 sqli_curs_open(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn1, 768), &_SD0, (
char *)0, (
struct value *)0, 1, 0);
179 #line 45 "hb5_search.ec"
190 #line 52 "hb5_search.ec"
192 #line 52 "hb5_search.ec"
193 static ifx_sqlvar_t _sqobind[] =
195 { 100, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
196 { 100, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
197 { 100, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
198 { 100, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
199 { 100, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
200 { 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
201 { 100, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
202 { 102,
sizeof((
btn_rec).
elev), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
203 { 100, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
204 { 100, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
205 { 100, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
206 { 100, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
207 { 100, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
208 { 100, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
209 { 102,
sizeof((
btn_rec).post), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
210 { 100, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
211 #line 52 "hb5_search.ec"
213 static ifx_sqlda_t _SD0 = { 16, _sqobind, {0}, 16, 0 };
214 static _FetchSpec _FS1 = { 0, 1, 0 };
215 #line 52 "hb5_search.ec"
216 _sqobind[0].sqldata = (
btn_rec).
id;
217 #line 52 "hb5_search.ec"
218 _sqobind[1].sqldata = (
btn_rec).plat;
219 #line 52 "hb5_search.ec"
220 _sqobind[2].sqldata = (
btn_rec).des;
221 #line 52 "hb5_search.ec"
222 _sqobind[3].sqldata = (
btn_rec).det;
223 #line 52 "hb5_search.ec"
224 _sqobind[4].sqldata = (
btn_rec).init;
225 #line 52 "hb5_search.ec"
227 #line 52 "hb5_search.ec"
228 _sqobind[6].sqldata = (
btn_rec).lng;
229 #line 52 "hb5_search.ec"
230 _sqobind[7].sqldata = (
char *) &(
btn_rec).elev;
231 #line 52 "hb5_search.ec"
232 _sqobind[8].sqldata = (
btn_rec).stat;
233 #line 52 "hb5_search.ec"
234 _sqobind[9].sqldata = (
btn_rec).huc;
235 #line 52 "hb5_search.ec"
236 _sqobind[10].sqldata = (
btn_rec).cou;
237 #line 52 "hb5_search.ec"
238 _sqobind[11].sqldata = (
btn_rec).zon;
239 #line 52 "hb5_search.ec"
240 _sqobind[12].sqldata = (
btn_rec).hsa;
241 #line 52 "hb5_search.ec"
242 _sqobind[13].sqldata = (
btn_rec).cwa;
243 #line 52 "hb5_search.ec"
244 _sqobind[14].sqldata = (
char *) &(
btn_rec).post;
245 #line 52 "hb5_search.ec"
246 _sqobind[15].sqldata = (
btn_rec).dbsource;
247 sqli_curs_fetch(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn1, 768), (ifx_sqlda_t *)0, &_SD0, (
char *)0, &_FS1);
248 #line 52 "hb5_search.ec"
264 #line 64 "hb5_search.ec"
266 #line 64 "hb5_search.ec"
267 sqli_curs_close(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn1, 768));
268 #line 64 "hb5_search.ec"
278 #line 71 "hb5_search.ec"
int hb5_search(int dbase, char *cstr, struct stn_rec *stn_record)
struct sqlca_s ifx_sqlca_t
struct sqlca_s::sqlcaw_s sqlwarn