9#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
30#ifdef _ECPG_INFORMIX_H
65#line 15 "describe.pgc"
66 char * stmt1 =
"SELECT id, t FROM descr_t1" ;
68#line 16 "describe.pgc"
69 char * stmt2 =
"SELECT id, t FROM descr_t1 WHERE id = -1" ;
71#line 17 "describe.pgc"
72 int i , count1 , count2 ;
74#line 18 "describe.pgc"
75 char field_name1 [ 30 ] =
"not set" ;
77#line 19 "describe.pgc"
78 char field_name2 [ 30 ] =
"not set" ;
80#line 20 "describe.pgc"
87 strcpy(msg,
"connect");
88 {
ECPGconnect(__LINE__, 1,
"ecpg1_regression" , NULL, NULL , NULL, 0);
89#line 27 "describe.pgc"
92#line 27 "describe.pgc"
97#line 30 "describe.pgc"
100#line 30 "describe.pgc"
103 strcpy(msg,
"create");
105#line 33 "describe.pgc"
108#line 33 "describe.pgc"
111 strcpy(msg,
"insert");
112 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"insert into descr_t1 ( id , t ) values ( default , 'a' )",
ECPGt_EOIT,
ECPGt_EORT);
113#line 36 "describe.pgc"
116#line 36 "describe.pgc"
118 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"insert into descr_t1 ( id , t ) values ( default , 'b' )",
ECPGt_EOIT,
ECPGt_EORT);
119#line 37 "describe.pgc"
122#line 37 "describe.pgc"
124 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"insert into descr_t1 ( id , t ) values ( default , 'c' )",
ECPGt_EOIT,
ECPGt_EORT);
125#line 38 "describe.pgc"
128#line 38 "describe.pgc"
130 {
ECPGdo(__LINE__, 1, 1, NULL, 0,
ECPGst_normal,
"insert into descr_t1 ( id , t ) values ( default , 'd' )",
ECPGt_EOIT,
ECPGt_EORT);
131#line 39 "describe.pgc"
134#line 39 "describe.pgc"
137 strcpy(msg,
"commit");
139#line 42 "describe.pgc"
142#line 42 "describe.pgc"
151 strcpy(msg,
"allocate");
153#line 51 "describe.pgc"
156#line 51 "describe.pgc"
159#line 52 "describe.pgc"
162#line 52 "describe.pgc"
165 strcpy(msg,
"prepare");
167#line 55 "describe.pgc"
170#line 55 "describe.pgc"
175 strcpy(msg,
"describe");
179#line 60 "describe.pgc"
184#line 61 "describe.pgc"
190#line 63 "describe.pgc"
195#line 64 "describe.pgc"
200#line 65 "describe.pgc"
221 strcpy(msg,
"get descriptor");
224#line 86 "describe.pgc"
227#line 86 "describe.pgc"
231#line 87 "describe.pgc"
234#line 87 "describe.pgc"
237 if (count1 != count2)
239 printf(
"count1 (%d) != count2 (%d)\n", count1, count2);
261 for (
i = 1;
i <= count1;
i++)
266#line 115 "describe.pgc"
269#line 115 "describe.pgc"
274#line 116 "describe.pgc"
277#line 116 "describe.pgc"
279 printf(
"%d\n\tfield_name1 '%s'\n\tfield_name2 '%s'\n\t"
280 "sqlda1 '%s'\n\tsqlda2 '%s'\n\tsqlda3 '%s'\n",
281 i, field_name1, field_name2,
287 strcpy(msg,
"deallocate");
289#line 126 "describe.pgc"
292#line 126 "describe.pgc"
295#line 127 "describe.pgc"
298#line 127 "describe.pgc"
305#line 132 "describe.pgc"
308#line 132 "describe.pgc"
313 strcpy(msg,
"allocate");
315#line 137 "describe.pgc"
318#line 137 "describe.pgc"
321#line 138 "describe.pgc"
324#line 138 "describe.pgc"
327 strcpy(msg,
"prepare");
329#line 141 "describe.pgc"
332#line 141 "describe.pgc"
337 strcpy(msg,
"describe");
341#line 146 "describe.pgc"
346#line 147 "describe.pgc"
352#line 149 "describe.pgc"
357#line 150 "describe.pgc"
362#line 151 "describe.pgc"
368 strcpy(msg,
"get descriptor");
371#line 157 "describe.pgc"
374#line 157 "describe.pgc"
378#line 158 "describe.pgc"
381#line 158 "describe.pgc"
384 if (!( count1 == count2 &&
390 for (
i = 1;
i <= count1;
i++)
395#line 168 "describe.pgc"
398#line 168 "describe.pgc"
403#line 169 "describe.pgc"
406#line 169 "describe.pgc"
408 printf(
"%d\n\tfield_name1 '%s'\n\tfield_name2 '%s'\n\t"
409 "sqlda1 '%s'\n\tsqlda2 '%s'\n\tsqlda3 '%s'\n",
410 i, field_name1, field_name2,
416 strcpy(msg,
"deallocate");
418#line 179 "describe.pgc"
421#line 179 "describe.pgc"
424#line 180 "describe.pgc"
427#line 180 "describe.pgc"
434#line 185 "describe.pgc"
437#line 185 "describe.pgc"
444#line 190 "describe.pgc"
447#line 190 "describe.pgc"
450 strcpy(msg,
"commit");
452#line 193 "describe.pgc"
455#line 193 "describe.pgc"
458 strcpy(msg,
"disconnect");
460#line 196 "describe.pgc"
463#line 196 "describe.pgc"
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 ECPGdeallocate_desc(int line, const char *name)
bool ECPGget_desc(int lineno, const char *desc_name, int index,...)
bool ECPGallocate_desc(int line, const char *name)
bool ECPGdescribe(int line, int compat, bool input, const char *connection_name, const char *stmt_name,...)
bool ECPGget_desc_header(int lineno, const char *desc_name, int *count)
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,...)
bool ECPGtrans(int lineno, const char *connection_name, const char *transaction)
bool ECPGprepare(int lineno, const char *connection_name, const bool questionmarks, const char *name, const char *variable)
bool ECPGdeallocate(int lineno, int c, const char *connection_name, const char *name)
struct sqlvar_struct sqlvar[1]