skip to main content
OpenAccess SDK SQL Engine Core Functions API : Function Reference : dam_setOption
 

dam_setOption

This function sets the options related to the operations of the OpenAccess SDK SQL engine. Options can be set at the connection, statement, or conditions list level. See the tables in the following sections for lists of options that you can set:
*Connection Options
*Statement Options
*Condition List Options
int dam_setOption(
int iOptionType,
void * pObjectHandle,
int iOption,
long iOptionValue)
Table 175. Parameters for dam_setOption
Parameter
Type
Description
IN
iOptionType
int
Type of option:
*DAM_CONN_OPTION
*DAM_STMT_OPTION
*DAM_CONDLIST_OPTION
pObjectHandle
void *
The object handle to which the option applies. It can be one of the following object handles:
*The connection handle DAM_HDBC
*Statement handle DAM_HSTMT
*The condition list handle DAM_HCONDLIST
iOption
int
The option to set.
iOptionValue
long
The value to set for the iOption.
RETURN
int
Status of the function call:
*DAM_SUCCESS - option set
*DAM_FAILURE - error in setting the specified option for the specified object type
In this section: 
* Connection Options
* Statement Options
* Condition List Options