1
- /* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. */
1
+ /* Copyright (c) 2015, 2016, Oracle and/or its affiliates.
2
+ All rights reserved. */
2
3
3
4
/* *****************************************************************************
4
5
*
@@ -285,17 +286,24 @@ void StmtImpl::bind (unsigned int pos, unsigned short type, void *buf,
285
286
PARAMETERS
286
287
name - name of the variable
287
288
nameLen - len of name.
289
+ bndpos - position in array in case of DML Returning.
288
290
type - data type
289
291
buf (IN/OUT) - data buffer for value
290
292
bufSize - size of buffer
291
293
ind - indicator
292
294
bufLen - returned buffer size
295
+ maxarr_len - max array len in case of PL/SQL array binds
296
+ curelen - current array len in case of PL/SQL array binds.
297
+ data - if callback specified, data for callback
298
+ cb - callback used in case of DML Returning.
293
299
*/
294
300
void StmtImpl::bind (const unsigned char *name, int nameLen,
295
301
unsigned int bndpos,
296
302
unsigned short type, void *buf, DPI_SZ_TYPE bufSize,
297
303
short *ind, DPI_BUFLEN_TYPE *bufLen,
298
- void *data, cbtype cb)
304
+ unsigned int maxarr_len, unsigned int *curelen,
305
+ void *data,
306
+ cbtype cb)
299
307
{
300
308
OCIBind *b = (OCIBind *)0 ;
301
309
@@ -305,7 +313,8 @@ void StmtImpl::bind (const unsigned char *name, int nameLen,
305
313
(type == DpiRSet) ? 0 : bufSize, type,
306
314
(cb ? NULL : ind),
307
315
(cb ? NULL : bufLen),
308
- NULL , 0 , NULL ,
316
+ NULL ,
317
+ maxarr_len, curelen,
309
318
(cb) ? OCI_DATA_AT_EXEC : OCI_DEFAULT), errh_);
310
319
if ( cb )
311
320
{
0 commit comments