7#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
9#line 1 "array_of_struct.pgc"
20#line 3 "array_of_struct.pgc"
24#line 5 "array_of_struct.pgc"
27#line 6 "array_of_struct.pgc"
30#line 7 "array_of_struct.pgc"
34#line 12 "array_of_struct.pgc"
37#line 13 "array_of_struct.pgc"
40#line 14 "array_of_struct.pgc"
44#line 19 "array_of_struct.pgc"
47#line 20 "array_of_struct.pgc"
50#line 21 "array_of_struct.pgc"
63#line 30 "array_of_struct.pgc"
64 struct varchar_2 {
int len;
char arr[ 50 ]; }
name ;
66#line 31 "array_of_struct.pgc"
70#line 32 "array_of_struct.pgc"
86#line 26 "array_of_struct.pgc"
89#line 27 "array_of_struct.pgc"
92#line 33 "array_of_struct.pgc"
93 customer2 custs2 [ 10 ] ;
95#line 38 "array_of_struct.pgc"
97#line 36 "array_of_struct.pgc"
98 struct varchar_3 {
int len;
char arr[ 50 ]; }
name ;
100#line 37 "array_of_struct.pgc"
104#line 43 "array_of_struct.pgc"
106#line 41 "array_of_struct.pgc"
107 struct varchar_4 {
int len;
char arr[ 50 ]; }
name ;
109#line 42 "array_of_struct.pgc"
113#line 44 "array_of_struct.pgc"
116#line 45 "array_of_struct.pgc"
117 struct varchar_5 {
int len;
char arr[ 50 ]; } onlyname [ 2 ] ;
119#line 46 "array_of_struct.pgc"
124 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0);
125#line 50 "array_of_struct.pgc"
128#line 50 "array_of_struct.pgc"
131#line 50 "array_of_struct.pgc"
135#line 52 "array_of_struct.pgc"
138#line 52 "array_of_struct.pgc"
141#line 52 "array_of_struct.pgc"
144#line 53 "array_of_struct.pgc"
147#line 53 "array_of_struct.pgc"
150#line 53 "array_of_struct.pgc"
153#line 53 "array_of_struct.pgc"
156#line 54 "array_of_struct.pgc"
159#line 54 "array_of_struct.pgc"
162#line 54 "array_of_struct.pgc"
165#line 54 "array_of_struct.pgc"
173#line 56 "array_of_struct.pgc"
176#line 56 "array_of_struct.pgc"
179#line 56 "array_of_struct.pgc"
182#line 56 "array_of_struct.pgc"
185 for (r = 0; r < 2; r++)
188 printf(
"phone - %d\n", custs1[r].phone );
192 ECPGt_varchar,&(custs2->name),(
long)50,(
long)10,
sizeof( customer2 ),
194 ECPGt_int,&(custs2->phone),(
long)1,(
long)10,
sizeof( customer2 ),
196#line 64 "array_of_struct.pgc"
199#line 64 "array_of_struct.pgc"
202#line 64 "array_of_struct.pgc"
205#line 64 "array_of_struct.pgc"
208 for (r = 0; r < 2; r++)
211 printf(
"phone - %d\n", custs2[r].phone );
215 ECPGt_varchar,&(custs3->name),(
long)50,(
long)10,
sizeof(
struct customer3 ),
217 ECPGt_int,&(custs3->phone),(
long)1,(
long)10,
sizeof(
struct customer3 ),
219#line 72 "array_of_struct.pgc"
222#line 72 "array_of_struct.pgc"
225#line 72 "array_of_struct.pgc"
228#line 72 "array_of_struct.pgc"
231 for (r = 0; r < 2; r++)
234 printf(
"phone - %d\n", custs3[r].phone );
238 ECPGt_varchar,&(custs4.name),(
long)50,(
long)1,
sizeof(
struct customer4 ),
240 ECPGt_int,&(custs4.phone),(
long)1,(
long)1,
sizeof(
struct customer4 ),
242#line 80 "array_of_struct.pgc"
245#line 80 "array_of_struct.pgc"
248#line 80 "array_of_struct.pgc"
251#line 80 "array_of_struct.pgc"
254 printf(
"name - %s\n", custs4.name.arr );
255 printf(
"phone - %d\n", custs4.phone );
258 ECPGt_varchar,(onlyname),(
long)50,(
long)2,
sizeof(
struct varchar_5),
260#line 85 "array_of_struct.pgc"
263#line 85 "array_of_struct.pgc"
266#line 85 "array_of_struct.pgc"
269#line 85 "array_of_struct.pgc"
272 for (r = 0; r < 2; r++)
274 printf(
"name - %s\n", onlyname[r].arr );
278#line 92 "array_of_struct.pgc"
281#line 92 "array_of_struct.pgc"
284#line 92 "array_of_struct.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 ECPGdo(const int lineno, const int compat, const int force_indicator, const char *connection_name, const bool questionmarks, const int st, const char *query,...)
struct customer::varchar_1 name