State transitions in a client LIBMI application
In a client LIBMI application, the only state-transition event that might occur is MI_Xact_State_Change. The MI_Xact_State_Change event occurs only within a client application.
In a client LIBMI application, a state-change callback
is invoked for the following state-transition types:
- An explicit begin transaction.
You execute an explicit begin with the SQL statement, BEGIN WORK.
- An ANSI-standard implicit begin.
In databases that are ANSI compliant, every SQL statement is a separate transaction. Therefore, ANSI-compliant databases execute an implicit begin for each SQL statement.
- An explicit end transaction.
You execute an explicit end transaction with one of the following SQL statements: COMMIT WORK (normal end) or ROLLBACK WORK (aborted end).