Commits or rollbacks a transaction.
Open cursors are automatically closed.
Parameters
MimerSession sessionhandle,
int32_t commit_rollback)
sessionhandle |
in |
A handle returned by MimerBeginSession[C|8] identifying the session. |
commit_rollback |
in |
An integer specifying the transaction operation to perform. MIMER_COMMIT and MIMER_ROLLBACK are recognized. |
Returns
A negative value indicating an error, or zero if successful.
Return value |
Description |
---|---|
MIMER_SUCCESS |
Success. |
MIMER_HANDLE_INVALID |
The sessionhandle parameter was not recognized as a handle. |
MIMER_SEQUENCE_ERROR |
No transaction has been started. |
Other value < 0 |
Any of the server error codes listed in Return Codes. |
Notes
This routine interacts with the database server.
Not Micro API compatible.