26 {
27
28
29
30
31
32#line 10 "autoprep.pgc"
33 int item [ 4 ] ,
ind [ 4 ] ,
i = 1 ;
34
35#line 11 "autoprep.pgc"
36 int item1 , ind1 ;
37
38#line 12 "autoprep.pgc"
39 char sqlstr [ 64 ] = "SELECT item2 FROM T ORDER BY item2 NULLS LAST" ;
40
41#line 13 "autoprep.pgc"
42
43
45 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0); }
46#line 16 "autoprep.pgc"
47
48
49
50#line 18 "autoprep.pgc"
51
52
53#line 19 "autoprep.pgc"
54
55
57#line 21 "autoprep.pgc"
58
60#line 21 "autoprep.pgc"
61
63#line 21 "autoprep.pgc"
64
65
67#line 23 "autoprep.pgc"
68
70#line 23 "autoprep.pgc"
71
73#line 23 "autoprep.pgc"
74
78#line 24 "autoprep.pgc"
79
81#line 24 "autoprep.pgc"
82
84#line 24 "autoprep.pgc"
85
90#line 26 "autoprep.pgc"
91
93#line 26 "autoprep.pgc"
94
96#line 26 "autoprep.pgc"
97
98 {
ECPGprepare(__LINE__, NULL, 0,
"i",
" insert into T values ( 1 , 2 ) ");
99#line 27 "autoprep.pgc"
100
102#line 27 "autoprep.pgc"
103
105#line 27 "autoprep.pgc"
106
108#line 28 "autoprep.pgc"
109
111#line 28 "autoprep.pgc"
112
114#line 28 "autoprep.pgc"
115
116
118 ECPGt_int,(item),(
long)1,(
long)4,
sizeof(
int),
120#line 30 "autoprep.pgc"
121
123#line 30 "autoprep.pgc"
124
126#line 30 "autoprep.pgc"
127
128
131
132
133#line 35 "autoprep.pgc"
134
135
137#line 37 "autoprep.pgc"
138
140#line 37 "autoprep.pgc"
141
143#line 37 "autoprep.pgc"
144
145
149#line 39 "autoprep.pgc"
150
152#line 39 "autoprep.pgc"
153
155#line 39 "autoprep.pgc"
156
158
160#line 42 "autoprep.pgc"
161
163#line 42 "autoprep.pgc"
164
166#line 42 "autoprep.pgc"
167
168
170#line 44 "autoprep.pgc"
171
173#line 44 "autoprep.pgc"
174
176#line 44 "autoprep.pgc"
177
178
179
180#line 46 "autoprep.pgc"
181
182
186#line 48 "autoprep.pgc"
187
189#line 48 "autoprep.pgc"
190
192#line 48 "autoprep.pgc"
193
194
195
196#line 50 "autoprep.pgc"
197
198
201 {
203 ECPGt_int,&(item1),(
long)1,(
long)1,
sizeof(
int),
205#line 55 "autoprep.pgc"
206
208#line 55 "autoprep.pgc"
209
211#line 55 "autoprep.pgc"
212
214#line 55 "autoprep.pgc"
215
216 printf(
"item[%d] = %d\n",
i, ind1 ? -1 : item1);
218 }
219
221#line 60 "autoprep.pgc"
222
224#line 60 "autoprep.pgc"
225
227#line 60 "autoprep.pgc"
228
229
231#line 62 "autoprep.pgc"
232
234#line 62 "autoprep.pgc"
235
237#line 62 "autoprep.pgc"
238
239
241#line 64 "autoprep.pgc"
242
244#line 64 "autoprep.pgc"
245
247#line 64 "autoprep.pgc"
248
249}
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,...)
char * ECPGprepared_statement(const char *connection_name, const char *name, int lineno)
bool ECPGprepare(int lineno, const char *connection_name, const bool questionmarks, const char *name, const char *variable)