skip to main content
OpenAccess SDK SQL Engine Core Functions API : Function Reference : dam_allocArray
 

dam_allocArray

This function allocates an array and returns its handle. The OpenAccess SDK SQL engine allocates the memory required by the array to hold iCardinality number of elements.
DAM_HARRAY dam_allocArray(
DAM_HSTMT hstmt,
DAM_HCOL hCol,
int iCardinality)
Table 66. Parameters for dam_allocArray
Parameter
Type
Description
IN
hstmt
DAM_HSTMT
The statement handle.
hcol
DAM_HCOL
The column handle.
iCardinality
int
The number of elements in the array.
RETURN
DAM_HARRAY
The handle to a new array. A NULL is returned if an array could not be allocated.