dam_addRowToTable
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 9.0
- Documentation
This function adds the row to the result set. This function should be called if dam_isTargetRow returns DAM_TRUE. All rows added to the result set are sent back to the client. The IP should check the return code from the function and, on failure, stop processing the query and return DAM_FAILURE from OAIP_execute.
int dam_addRowToTable(
DAM_HSTMT hstmt,
DAM_HROW hRow)
Parameters for dam_addRowToTable
| Parameter | Type | Description |
| IN | ||
| hstmt | DAM_HSTMT | Statement handle |
| hRow | DAM_HROW | Row handle |
| RETURN | ||
| int | DAM_SUCCESS - Added the row. DAM_FAILURE - Failed to add the row. This could occur when values for all columns are not specified or there is an error in computing any expressions in the SELECT list. If return code is DAM_FAILURE, the IP should return from OAIP_execute with DAM_FAILURE. DAM_ABORT_OPERATION - Failed to add the row when any of the specified resource quotas are exceeded. For example, if the Query Timeout occurs, this error is returned. The IP should check and return from OAIP_execute with DAM_FAILURE. |