skip to main content
Interface Provider API : Reference : OAIP_native (8-bit character version)
 

OAIP_native (8-bit character version)

int OAIP_native(
IP_HDBC hdbc,
DAM_HSTMT hstmt,
int iCommandOption,
char * sCommmand,
int64 * piNumResRows)
Table 19. Parameters for OAIP_native (8-bit Character)
Parameter
Type
Description
IN
hdbc
IP_HDBC
The connection handle as defined by the IP.
hstmt
DAM_HSTMT
The statement handle of the currently active statement.
iCommandOption
int
DAM_NC_VALIDATE - validate the passed-in command.
DAM_NC_EXECUTE - execute the native command and return the number of rows affected.
sCommmand
char *
The command to execute.
OUT
piNumResRows
int64 *
The number of rows affected by this operation.
RETURN
int
DAM_SUCCESS - In DAM_NC_VALIDATE mode, this value indicates that the command is supported. In DAM_NC_EXECUTE mode, this value indicates that the command was successfully executed.
DAM_FAILURE - Indicates that there is a syntax error in the native command. The specific error message should be added using the dam_addError/dam_addErrorW function.
DAM_NOT_AVAILABLE - In DAM_NC_VALIDATE mode, the command issued is not supported.

See also

*dam_addError/dam_addErrorW