skip to main content
IP API Reference for C/C++ : IP API for C/C++ : OASQLIP_alloc_stmt
 

OASQLIP_alloc_stmt

The OASQLIP_alloc_stmt function allocates a statement handle using the memory tree of the connection and returns it in the psqlip_hstmt parameter, initializing the state of the statement handle. The IP should maintain state indicating the operations completed on the statement handle. This is treated as an opaque statement handle that OpenAccess SDK passes into statement level functions. You can define it as a pointer to any type of structure you need to maintain your statement information.
int OASQLIP_alloc_stmt(
SQLIP_HDBC sqlip_hdbc,
SQLIP_HSTMT * psqlip_hstmt)
 
Table 6: Parameters for the OASQLIP_alloc_stmt Function 
Parameter
Type
Description
INPUT
 
 
sqlip_hdbc
SQLIP_HDBC
Connection handle
psqlip_hstmt
SQLIP_HSTMT *
Allocates a structure to hold statement information and returns a pointer to it. This pointer is passed into all IP calls that need statement level information.
RETURN
 
 
 
int
OADS_SUCCESS
OADS_ERROR