Home | Previous Page | Next Page   Descriptor Function Reference > Accessor Functions >

mi_scan_isolevel()

The mi_scan_isolevel() function retrieves the isolation level that the database server expects for the table that am_getnext scans.

Syntax

MI_ISOLATION_LEVEL mi_scan_isolevel(MI_AM_SCAN_DESC *scanDesc);
scanDesc
points to the scan descriptor.

Usage

If the access method supports isolation levels, it can call mi_scan_isolevel() from am_beginscan to determine the appropriate isolation level. For a detailed description of isolation levels, see Checking Isolation Levels.

Call mi_scan_isolevel() to validate that the isolation level requested by the application does not surpass the isolation level that the access method supports. If the access method supports Serializable, it does not call mi_scan_isolevel() because Serializable includes the capabilities of all the other levels.

Return Values

MI_ISO_NOTRANSACTION indicates that no transaction is in progress.

MI_ISO_READUNCOMMITTED indicates Dirty Read.

MI_ISO_READCOMMITTED indicates Read Committed.

MI_ISO_CURSORSTABILITY indicates Cursor Stability.

MI_ISO_REPEATABLEREAD indicates Repeatable Read.

MI_ISO_SERIALIZABLE indicates Serializable.

Related Topics

See the descriptions of:

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]