Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Any Type and Data Functions, 7 of 26
Retrieves the data value of an OCIAnyData. The data value should be of the type with which the OCIAnyData was initialized.This call can be used to access an entire OCIAnyData which can be of type OCI_TYPECODE_OBJECT, any of the collection types, or any of the built-in types.
sword OCIAnyDataAccess ( OCISvcCtx *svchp, OCIError *errhp, OCIAnyData *sdata, OCITypeCode tc, OCIType *inst_type, dvoid *null_ind, dvoid *data_value, ub4 *length );
The OCI service context.
The OCI error handle. If there is an error, it is recorded in err
and this function returns OCI_ERROR. Obtain diagnostic information by calling OCIErrorGet()
.
Initialized pointer to an OCIAnyData.
Typecode of the data value. This is used for type checking (with the initialization type of the OCIAnyData).
The OCIType of the data value (if it is not a primitive one). If the tc
parameter is
then this parameter should be not NULL. Otherwise, it could be NULL.
Indicates if the data_value
is NULL. Pass an (OCIInd *)
for all typecodes except OCI_TYPECODE_OBJECT. The value returned will be OCI_IND_NOTNULL if the value is not NULL and it will be OCI_IND_NULL for a NULL value. If the typecode is OCI_TYPECODE_OBJECT, pass a pointer to the indicator struct of the data_value
as the argument here. See OCIAnyDataAttrGet()
for details.
The data value (will be of the type with which the OCIAnyData was initialized). See OCIAnyDataAttrGet()
for the appropriate C type corresponding to each allowed typecode and for a description of how memory allocation behavior depends on the value passed for this parameter.
Currently, this parameter is ignored. In the future, this may be used for certain typecodes where the data representation itself will not give the length, in bytes, implicitly.
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|