skip to main content
Interface Provider class : 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(
    long   hstmt,
    int    iType,
    xo_long piNumResRows)
Table 16. Parameters for ipDDL
Parameter
Type
Description
INPUT
hstmt
long
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.
piNumResRows
xo_long
Number of rows affected by this operation.
RETURN
int
DAM_SUCCESS - on success
DAM_FAILURE - on failure

See also

*ipGetSupport