@@ -200,116 +200,117 @@ if (sqlca.sqlcode < 0) sqlprint();}
200
200
201
201
dump_binary (recv_vlen_buf [0 ].arr ,recv_vlen_buf [0 ].len ,0 );
202
202
dump_binary (recv_vlen_buf [1 ].arr ,recv_vlen_buf [1 ].len ,0 );
203
+ free (recv_vlen_buf );
203
204
204
205
/* Test for dynamic sql statement with normal host variable, indicator */
205
206
init ();
206
207
{ECPGdo (__LINE__ ,0 ,1 ,NULL ,0 ,ECPGst_normal ,"truncate test" ,ECPGt_EOIT ,ECPGt_EORT );
207
- #line 86 "bytea.pgc"
208
+ #line 87 "bytea.pgc"
208
209
209
210
if (sqlca .sqlcode < 0 )sqlprint ();}
210
- #line 86 "bytea.pgc"
211
+ #line 87 "bytea.pgc"
211
212
212
213
{ECPGdo (__LINE__ ,0 ,1 ,NULL ,0 ,ECPGst_execute ,"ins_stmt" ,
213
214
ECPGt_bytea ,& (send_buf [0 ]),(long )DATA_SIZE ,(long )1 ,sizeof (struct bytea_1 ),
214
215
ECPGt_NO_INDICATOR ,NULL ,0L ,0L ,0L ,
215
216
ECPGt_bytea ,& (send_buf [1 ]),(long )DATA_SIZE ,(long )1 ,sizeof (struct bytea_1 ),
216
217
ECPGt_NO_INDICATOR ,NULL ,0L ,0L ,0L ,ECPGt_EOIT ,ECPGt_EORT );
217
- #line 87 "bytea.pgc"
218
+ #line 88 "bytea.pgc"
218
219
219
220
if (sqlca .sqlcode < 0 )sqlprint ();}
220
- #line 87 "bytea.pgc"
221
+ #line 88 "bytea.pgc"
221
222
222
223
{ECPGdo (__LINE__ ,0 ,1 ,NULL ,0 ,ECPGst_execute ,"sel_stmt" ,ECPGt_EOIT ,
223
224
ECPGt_bytea ,& (recv_buf [0 ]),(long )DATA_SIZE ,(long )1 ,sizeof (struct bytea_2 ),
224
225
ECPGt_int ,& (ind [0 ]),(long )1 ,(long )1 ,sizeof (int ),
225
226
ECPGt_bytea ,& (recv_short_buf ),(long )DATA_SIZE - LACK_SIZE ,(long )1 ,sizeof (struct bytea_4 ),
226
227
ECPGt_int ,& (ind [1 ]),(long )1 ,(long )1 ,sizeof (int ),ECPGt_EORT );
227
- #line 88 "bytea.pgc"
228
+ #line 89 "bytea.pgc"
228
229
229
230
if (sqlca .sqlcode < 0 )sqlprint ();}
230
- #line 88 "bytea.pgc"
231
+ #line 89 "bytea.pgc"
231
232
232
233
dump_binary (recv_buf [0 ].arr ,recv_buf [0 ].len ,ind [0 ]);
233
234
dump_binary (recv_short_buf .arr ,recv_short_buf .len ,ind [1 ]);
234
235
235
236
/* Test for dynamic sql statement with sql descriptor */
236
237
init ();
237
238
{ECPGdo (__LINE__ ,0 ,1 ,NULL ,0 ,ECPGst_normal ,"truncate test" ,ECPGt_EOIT ,ECPGt_EORT );
238
- #line 94 "bytea.pgc"
239
+ #line 95 "bytea.pgc"
239
240
240
241
if (sqlca .sqlcode < 0 )sqlprint ();}
241
- #line 94 "bytea.pgc"
242
+ #line 95 "bytea.pgc"
242
243
243
244
{ECPGset_desc (__LINE__ ,"idesc" ,1 ,ECPGd_data ,
244
245
ECPGt_bytea ,& (send_buf [0 ]),(long )DATA_SIZE ,(long )1 ,sizeof (struct bytea_1 ),ECPGd_EODT );
245
246
246
- #line 95 "bytea.pgc"
247
+ #line 96 "bytea.pgc"
247
248
248
249
if (sqlca .sqlcode < 0 )sqlprint ();}
249
- #line 95 "bytea.pgc"
250
+ #line 96 "bytea.pgc"
250
251
251
252
{ECPGset_desc (__LINE__ ,"idesc" ,2 ,ECPGd_data ,
252
253
ECPGt_bytea ,& (send_buf [1 ]),(long )DATA_SIZE ,(long )1 ,sizeof (struct bytea_1 ),ECPGd_EODT );
253
254
254
- #line 96 "bytea.pgc"
255
+ #line 97 "bytea.pgc"
255
256
256
257
if (sqlca .sqlcode < 0 )sqlprint ();}
257
- #line 96 "bytea.pgc"
258
+ #line 97 "bytea.pgc"
258
259
259
260
{ECPGdo (__LINE__ ,0 ,1 ,NULL ,0 ,ECPGst_execute ,"ins_stmt" ,
260
261
ECPGt_descriptor ,"idesc" ,1L ,1L ,1L ,
261
262
ECPGt_NO_INDICATOR ,NULL ,0L ,0L ,0L ,ECPGt_EOIT ,ECPGt_EORT );
262
- #line 97 "bytea.pgc"
263
+ #line 98 "bytea.pgc"
263
264
264
265
if (sqlca .sqlcode < 0 )sqlprint ();}
265
- #line 97 "bytea.pgc"
266
+ #line 98 "bytea.pgc"
266
267
267
268
{ECPGdo (__LINE__ ,0 ,1 ,NULL ,0 ,ECPGst_execute ,"sel_stmt" ,ECPGt_EOIT ,
268
269
ECPGt_descriptor ,"odesc" ,1L ,1L ,1L ,
269
270
ECPGt_NO_INDICATOR ,NULL ,0L ,0L ,0L ,ECPGt_EORT );
270
- #line 98 "bytea.pgc"
271
+ #line 99 "bytea.pgc"
271
272
272
273
if (sqlca .sqlcode < 0 )sqlprint ();}
273
- #line 98 "bytea.pgc"
274
+ #line 99 "bytea.pgc"
274
275
275
276
{ECPGget_desc (__LINE__ ,"odesc" ,1 ,ECPGd_indicator ,
276
277
ECPGt_int ,& (ind [0 ]),(long )1 ,(long )1 ,sizeof (int ),ECPGd_data ,
277
278
ECPGt_bytea ,& (recv_buf [0 ]),(long )DATA_SIZE ,(long )1 ,sizeof (struct bytea_2 ),ECPGd_EODT );
278
279
279
- #line 99 "bytea.pgc"
280
+ #line 100 "bytea.pgc"
280
281
281
282
if (sqlca .sqlcode < 0 )sqlprint ();}
282
- #line 99 "bytea.pgc"
283
+ #line 100 "bytea.pgc"
283
284
284
285
{ECPGget_desc (__LINE__ ,"odesc" ,2 ,ECPGd_indicator ,
285
286
ECPGt_int ,& (ind [1 ]),(long )1 ,(long )1 ,sizeof (int ),ECPGd_data ,
286
287
ECPGt_bytea ,& (recv_short_buf ),(long )DATA_SIZE - LACK_SIZE ,(long )1 ,sizeof (struct bytea_4 ),ECPGd_EODT );
287
288
288
- #line 100 "bytea.pgc"
289
+ #line 101 "bytea.pgc"
289
290
290
291
if (sqlca .sqlcode < 0 )sqlprint ();}
291
- #line 100 "bytea.pgc"
292
+ #line 101 "bytea.pgc"
292
293
293
294
dump_binary (recv_buf [0 ].arr ,recv_buf [0 ].len ,ind [0 ]);
294
295
dump_binary (recv_short_buf .arr ,recv_short_buf .len ,ind [1 ]);
295
296
296
297
{ECPGdo (__LINE__ ,0 ,1 ,NULL ,0 ,ECPGst_normal ,"drop table test" ,ECPGt_EOIT ,ECPGt_EORT );
297
- #line 104 "bytea.pgc"
298
+ #line 105 "bytea.pgc"
298
299
299
300
if (sqlca .sqlcode < 0 )sqlprint ();}
300
- #line 104 "bytea.pgc"
301
+ #line 105 "bytea.pgc"
301
302
302
303
{ECPGtrans (__LINE__ ,NULL ,"commit" );
303
- #line 105 "bytea.pgc"
304
+ #line 106 "bytea.pgc"
304
305
305
306
if (sqlca .sqlcode < 0 )sqlprint ();}
306
- #line 105 "bytea.pgc"
307
+ #line 106 "bytea.pgc"
307
308
308
309
{ECPGdisconnect (__LINE__ ,"CURRENT" );
309
- #line 106 "bytea.pgc"
310
+ #line 107 "bytea.pgc"
310
311
311
312
if (sqlca .sqlcode < 0 )sqlprint ();}
312
- #line 106 "bytea.pgc"
313
+ #line 107 "bytea.pgc"
313
314
314
315
315
316
return 0 ;