|Oracle Call Interface Programmer's Guide
Part Number A89857-01
OCI Relational Functions, 39 of 39
Sets piece information for a piecewise operation.
sword OCIStmtSetPieceInfo ( dvoid *hndlp, ub4 type, OCIError *errhp, CONST dvoid *bufp, ub4 *alenp, ub1 piece, CONST dvoid *indp, ub2 *rcodep );
The bind/define handle.
Type of the handle.
An error handle you can pass to
OCIErrorGet() for diagnostic information in the event of an error.
A pointer to a storage containing the data value or the piece when it is an IN bind variable, otherwise
bufp is a pointer to storage for getting a piece or a value for OUT binds and define variables. For named data types or
REFs, a pointer to the object or
REF is returned.
The length of the piece or the value.
The piece parameter. Valid values:
This parameter is used for IN bind variables only.
Indicator. A pointer to a sb2 value or pointer to an indicator structure for named data types (SQLT_NTY) and
REFs (SQLT_REF), i.e.,
*indp is either an sb2 or a dvoid * depending upon the data type.
When an execute call returns OCI_NEED_DATA to get a dynamic IN/OUT bind value or piece,
OCIStmtSetPieceInfo() sets the piece information: the buffer, the length, which piece is currently being processed, the indicator, and the return code for this column.
For more information about using