informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_xact_levels()

The mi_xact_levels() routine sets into the address of the user-supplied integers the transaction level before and after the transition.

Syntax

Usage

Important: The DataBlade API provides this function only for backward compatibility with earlier Illustra applications. For new DataBlade API programs, use the mi_transition_type() function.

The mi_xact_levels() function is an accessor routine that you can use in a callback routine on notification of a transaction state transition; that is, entering or exiting a transaction.

Whenever the database server goes in or out of a transaction, the MI_Xact_State_Change event occurs. The two possible levels are 0 (not in a transaction) and 1 (in a transaction). The different statements set these levels as follows.

Command Old Level New Level
BEGIN WORK 0 1
COMMIT WORK 1 0
ROLLBACK WORK 1 0

Return Values

None.

Related Topics

See the description of the mi_xact_state() function.

For more information, see Creating a Callback Function.


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved