skip to main content
OpenAccess SDK SQL Engine core methods for Java : Exchanging data : dam_addRowToTable
 

dam_addRowToTable

This method adds the row to the result set. The IP should call this method if dam_isTargetRow returns DAM_TRUE. All rows that are added to the result set will be sent back to the client. The IP should check the return code from this method and, on failure, stop processing the query and return DAM_FAILURE.
int dam_addRowToTable(
    long hstmt,
    long hRow)
Table 127. Parameters for dam_addRowToTable
Parameter
Type
Description
INPUT
hstmt
long
The statement handle.
hRow
long
The 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 ipExecute 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 ipExecute with DAM_FAILURE.

See also

*dam_isTargetRow