IIapi_commit() Function--Commit a Transaction
The IIapi_commit() function commits a transaction that was started with IIapi_query() or IIapi_batch(), or restarted by IIapi_connect(), and then frees the transaction handle.
Before the transaction is committed, the application must call IIapi_close() to free the statement handles within the transaction.
This function has the following syntax:
II_VOID IIapi_commit (IIAPI_COMMITPARM *commitParm);
typedef struct _IIAPI_COMMITPARM
{
IIAPI_GENPARM cm_genParm;
II_PTR cm_tranHandle;
} IIAPI_COMMITPARM;
This function has the following parameters:
cm_genParm
Type: input and delayed output
cm_tranHandle
Type: input
Specifies the transaction ID handle identifying the transaction to be committed. The transaction ID handle is either from qy_tranHandle of IIapi_query(), ba_tranHandle of IIapi_batch(), or co_tranHandle of IIapi_connect().
Last modified date: 08/14/2024