OASQLIP_alloc_stmt
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
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)
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 |