Parameter
|
Type
|
Description
|
INPUT
|
|
|
sqlip_hsmt
|
SQLIP_HSTMT
|
The statement handle
|
iCol
|
OADS_INTEGER
|
Column number – first column starts at zero.
|
OUTPUT
|
|
|
piCardinality
|
OADS_INTEGER*
|
For array types, it gives the maximum number of array elements.
|
piXODataType
|
OADS_SMALLINT*
|
Data type of the column.
|
piNullable
|
OADS_SMALLINT*
|
Whether the column can have null values.
When set to 1, the column can have null values.
When set to 0, the column cannot have null values.
|
&pColName
|
OADS_POINTER*
|
Allocate a buffer, fill it with the column name, and return the pointer to this buffer. This buffer is used by the calling method.
|
piLen
|
OADS_ULEN*
|
Maximum length of the data in the column. Leave null for other types.
CHAR and VARCHAR – maximum length of the string
NUMERIC – precision + 2
Other datatypes – NULL
|
piPrecision
|
OADS_ULEN*
|
Number of digits of mantissa precision.
NUMERIC - Number of digits
CHAR and VARCHAR - set to same as piLen INTEGER=10, SMALLINT=5, DOUBLE=15, REAL=7,FLOAT=15
DATE=10, TIME=8, TIMESTAMP=19
|
piScale
|
OADS_SMALLINT*
|
Total number of significant digits to the right of the decimal point.
Only required for NUMERIC types.
|
RETURN
|
|
|
|
int
|
OADS_SUCCESS
OADS_ERROR – error allocating a connection handle
|