INFORMIX
DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home Contents Index Master Index New Book

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.

This accessor routine is used 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

Related Topics

For additional information, see "Callbacks"7 and the description of the mi_xact_state() function.




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.