mi_integer am_insert(MI_AM_TABLE_DESC *tableDesc, MI_ROW *row, MI_AM_ROWID_DESC *ridDesc)
If row and ridDesc are 0, am_insert calls mi_tab_niorows() to determine the maximum number of new index entries to expect. For each entry up to the maximum number passed, the am_insert function calls mi_tab_nextrow(). For a complete example, see mi_tab_nextrow().
Possible row identifiers include:
For each new entry, am_insert:
If the data is in an extspace, the access method stores the rowID value for use in retrieving the new record in the future.
To manipulate the index structure, am_insert executes support functions, either with a call to an access-method function or with the DataBlade API FastPath facility. For more information, refer to Using FastPath. Call mi_tab_userdata() to retrieve the pointer to PER_STATEMENT user data. Call mi_routine_exec() to execute the support function.
MI_OK indicates success. MI_ERROR indicates failure.
See the descriptions of: