Begin a transaction
When the database server begins a transaction block, it raises only the MI_Xact_State_Change event. The MI_Xact_State_Change event occurs only in the context of a client LIBMI application when the database server enters and leaves a transaction block. Only client callback functions can catch this begin-transaction event.
You handle the MI_Xact_State_Change event only in the context of a client LIBMI application. It occurs within a client LIBMI application when the current transaction ends with either a commit or a rollback. The MI_Xact_State_Change event also occurs when the database server begins a transaction.
State-transition event type | Callback type |
---|---|
MI_Xact_State_Change | State-change callback |
A C UDR does not begin transactions. It inherits the transaction of the client application that calls the SQL statement that contains the UDR.