| 
        
        Parameter
         | 
      
        
        Type
         | 
      
        
        Description
         | 
     
| 
        
        IN
         | 
      
        | 
      
        | 
     
| 
        
        hstmt
         | 
      
        
        int64
         | 
      
        
        Handle to the statement being executed.
         | 
     
| 
        
        iStmtType
         | 
      
        
        int
         | 
      
        
        The 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.
         | 
     
| 
        
        hSearchCol
         | 
      
        
        int64
         | 
      
        
        The handle to the column that has the search list to optimize the IP. If this is non-zero then it must be used. It will be non-zero if the column has an index on it and the IP has reported that it supports equality and other comparison operators used in the search condition. Use the dam_getOptimalIndexAndConditions method to get the associated search list.
        
       
        This parameter is not applicable when working in SQL pass-through mode.
         | 
     
| 
        
        piNumResRows
         | 
      
        
        long
         | 
      
        
        Number of rows effected by a INSERT, UPDATE, or DELETE statement execution.
         | 
     
| 
        
        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
         |