7#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
40#line 11 "variable.pgc"
42typedef union {
int integer;
short smallint; }
ind;
46#line 15 "variable.pgc"
50#line 18 "variable.pgc"
57#line 23 "variable.pgc"
60#line 23 "variable.pgc"
63#line 23 "variable.pgc"
77#line 27 "variable.pgc"
79#line 25 "variable.pgc"
82#line 26 "variable.pgc"
86#line 30 "variable.pgc"
88#line 28 "variable.pgc"
91#line 29 "variable.pgc"
95#line 31 "variable.pgc"
98#line 32 "variable.pgc"
101#line 32 "variable.pgc"
104#line 33 "variable.pgc"
107#line 34 "variable.pgc"
108 static int i1 , i2 ,
i3 ;
110#line 35 "variable.pgc"
114#line 37 "variable.pgc"
117#line 37 "variable.pgc"
120#line 38 "variable.pgc"
123#line 38 "variable.pgc"
126#line 39 "variable.pgc"
129#line 39 "variable.pgc"
138#line 46 "variable.pgc"
141#line 46 "variable.pgc"
146#line 49 "variable.pgc"
149#line 49 "variable.pgc"
153 {
ECPGdo(
__LINE__, 0, 1,
NULL, 0,
ECPGst_normal,
"create table family ( name char ( 8 ) , born integer , age smallint , married date , children integer )",
ECPGt_EOIT,
ECPGt_EORT);
154#line 52 "variable.pgc"
157#line 52 "variable.pgc"
161 {
ECPGdo(
__LINE__, 0, 1,
NULL, 0,
ECPGst_normal,
"insert into family ( name , married , children ) values ( 'Mum' , '19870714' , 3 )",
ECPGt_EOIT,
ECPGt_EORT);
162#line 55 "variable.pgc"
165#line 55 "variable.pgc"
167 {
ECPGdo(
__LINE__, 0, 1,
NULL, 0,
ECPGst_normal,
"insert into family ( name , born , married , children ) values ( 'Dad' , '19610721' , '19870714' , 3 )",
ECPGt_EOIT,
ECPGt_EORT);
168#line 56 "variable.pgc"
171#line 56 "variable.pgc"
173 {
ECPGdo(
__LINE__, 0, 1,
NULL, 0,
ECPGst_normal,
"insert into family ( name , age ) values ( 'Child 1' , 16 )",
ECPGt_EOIT,
ECPGt_EORT);
174#line 57 "variable.pgc"
177#line 57 "variable.pgc"
179 {
ECPGdo(
__LINE__, 0, 1,
NULL, 0,
ECPGst_normal,
"insert into family ( name , age ) values ( 'Child 2' , 14 )",
ECPGt_EOIT,
ECPGt_EORT);
180#line 58 "variable.pgc"
183#line 58 "variable.pgc"
185 {
ECPGdo(
__LINE__, 0, 1,
NULL, 0,
ECPGst_normal,
"insert into family ( name , age ) values ( 'Child 3' , 9 )",
ECPGt_EOIT,
ECPGt_EORT);
186#line 59 "variable.pgc"
189#line 59 "variable.pgc"
194#line 62 "variable.pgc"
197#line 62 "variable.pgc"
201 {
ECPGdo(
__LINE__, 0, 1,
NULL, 0,
ECPGst_normal,
"declare cur cursor for select name , born , age , married , children from family",
ECPGt_EOIT,
ECPGt_EORT);
202#line 65 "variable.pgc"
205#line 65 "variable.pgc"
209#line 67 "variable.pgc"
228#line 74 "variable.pgc"
231#line 74 "variable.pgc"
234#line 74 "variable.pgc"
237 if (
i->ind_birth.born >= 0)
239 if (
i->ind_birth.age >= 0)
253#line 91 "variable.pgc"
256#line 91 "variable.pgc"
261#line 94 "variable.pgc"
264#line 94 "variable.pgc"
269#line 97 "variable.pgc"
272#line 97 "variable.pgc"
275 strcpy(msg,
"disconnect");
277#line 100 "variable.pgc"
280#line 100 "variable.pgc"
286 printf(
"%d %d %d %d %d %d\n",
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,...)
bool ECPGtrans(int lineno, const char *connection_name, const char *transaction)