32 #line 10 "autoprep.pgc"
33 int item [ 4 ] ,
ind [ 4 ] ,
i = 1 ;
35 #line 11 "autoprep.pgc"
38 #line 12 "autoprep.pgc"
39 char sqlstr [ 64 ] =
"SELECT item2 FROM T ORDER BY item2 NULLS LAST" ;
41 #line 13 "autoprep.pgc"
45 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0); }
46 #line 16 "autoprep.pgc"
50 #line 18 "autoprep.pgc"
53 #line 19 "autoprep.pgc"
57 #line 21 "autoprep.pgc"
60 #line 21 "autoprep.pgc"
63 #line 21 "autoprep.pgc"
67 #line 23 "autoprep.pgc"
70 #line 23 "autoprep.pgc"
73 #line 23 "autoprep.pgc"
78 #line 24 "autoprep.pgc"
81 #line 24 "autoprep.pgc"
84 #line 24 "autoprep.pgc"
90 #line 26 "autoprep.pgc"
93 #line 26 "autoprep.pgc"
96 #line 26 "autoprep.pgc"
98 {
ECPGprepare(__LINE__, NULL, 0,
"i",
" insert into T values ( 1 , 2 ) ");
99 #line 27 "autoprep.pgc"
102 #line 27 "autoprep.pgc"
105 #line 27 "autoprep.pgc"
108 #line 28 "autoprep.pgc"
111 #line 28 "autoprep.pgc"
114 #line 28 "autoprep.pgc"
118 ECPGt_int,(item),(
long)1,(
long)4,
sizeof(
int),
120 #line 30 "autoprep.pgc"
123 #line 30 "autoprep.pgc"
126 #line 30 "autoprep.pgc"
133 #line 35 "autoprep.pgc"
137 #line 37 "autoprep.pgc"
140 #line 37 "autoprep.pgc"
143 #line 37 "autoprep.pgc"
149 #line 39 "autoprep.pgc"
152 #line 39 "autoprep.pgc"
155 #line 39 "autoprep.pgc"
160 #line 42 "autoprep.pgc"
163 #line 42 "autoprep.pgc"
166 #line 42 "autoprep.pgc"
170 #line 44 "autoprep.pgc"
173 #line 44 "autoprep.pgc"
176 #line 44 "autoprep.pgc"
180 #line 46 "autoprep.pgc"
186 #line 48 "autoprep.pgc"
189 #line 48 "autoprep.pgc"
192 #line 48 "autoprep.pgc"
196 #line 50 "autoprep.pgc"
203 ECPGt_int,&(item1),(
long)1,(
long)1,
sizeof(
int),
205 #line 55 "autoprep.pgc"
208 #line 55 "autoprep.pgc"
211 #line 55 "autoprep.pgc"
214 #line 55 "autoprep.pgc"
216 printf(
"item[%d] = %d\n",
i, ind1 ? -1 : item1);
221 #line 60 "autoprep.pgc"
224 #line 60 "autoprep.pgc"
227 #line 60 "autoprep.pgc"
231 #line 62 "autoprep.pgc"
234 #line 62 "autoprep.pgc"
237 #line 62 "autoprep.pgc"
241 #line 64 "autoprep.pgc"
244 #line 64 "autoprep.pgc"
247 #line 64 "autoprep.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,...)
bool ECPGprepare(int lineno, const char *connection_name, const bool questionmarks, const char *name, const char *variable)
char * ECPGprepared_statement(const char *connection_name, const char *name, int lineno)