skip to main content
Interface Provider class : IP methods reference : ipDDL
 

ipDDL

You must implement this method in your IP if it is to handle the DDL SQL syntax for creating tables, indexes, and other supported objects. The OpenAccess SDK SQL Engine calls this method when it needs to create or delete an object (for example, a table). ipGetSupport should return true for the supported DDL operations.
int ipDDL(
int64 hstmt,
int iType,
out long piNumResRows)
 
Table 4: Parameters for ipDDL 
Parameter
Type
Description
IN
 
 
hstmt
int64
The statement handle of the currently active statement
iType
int
Type of object management requested:
DAM_CREATE_TABLE – create a table
DAM_DROP_TABLE – drop a table
DAM_CREATE_INDEX – create an index
DAM_DROP_INDEX – drop an index
OUT
 
 
piNumResRows
long
Number of rows affected by this operation.
RETURN
 
 
 
int
DAM_SUCCESS – on success
DAM_FAILURE – on failure

See also 

ipGetSupport