OAIP_execute_dataTypes
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
This function is called by the OpenAccess SDK SQL Engine to get the data types supported from the IP code. IP implementers can change the default data type information by modifying the implementation of this method in the source file xxx_info.c.
int OAIP_execute_dataTypes(
IP_HDBC hdbc,
DAM_HSTMT hstmt,
int iStmtType,
int64 * piNumResRows)
Parameters for OAIP_execute_dataTypes
| Parameter | Type | Description |
| IN | ||
| hdbc | IP_HDBC | A pointer to connection information maintained by the IP. |
| hstmt | DAM_HSTMT | A handle to the statement being executed. |
| iStmtType | int | Type of the statement: DAM_SELECT - select DAM_UPDATE - update DAM_INSERT - insert DAM_DELETE - delete DAM_SELECT_FOR_UPDATE - lock selected rows DAM_FETCH - called to process additional rows in the case of a select. DAM_CLOSE - called to close the current select processing. DAM_START_QUERY - called to mark the beginning of a multiple sub-query execution sequence on the same table. DAM_END_QUERY - called to mark the end of a multiple sub-query execution sequence on the same table. DAM_SET_QUERY_MODE - called to allow the IP to determine whether to work in row-based or SQL pass-through mode. |
| OUT | ||
| piNumResRows | int64 * | Returns the number of rows affected by the operation. Not applicable to SELECT operations. |
| RETURN | ||
| int | DAM_SUCCESS - on success DAM_FAILURE - on failure DAM_SUCCESS_WITH_RESULT_PENDING - when the IP is processing partial results sets in cursor mode |