Contents Index Isolation levels and consistency Cursor instability

ASA SQL User's Guide
  Using Transactions and Isolation Levels
    Isolation levels and consistency

Typical types of inconsistency


There are three typical types of inconsistency that can occur during the execution of concurrent transactions. This list is not exhaustive as other types of inconsistencies can also occur. These three types are mentioned in the ISO SQL/92 standard and are important because behavior at lower isolation levels is defined in terms of them.

Other types of inconsistencies can also exist. These three were chosen for the ISO SQL/92 standard because they are typical problems and because it was convenient to describe amounts of locking between transactions in terms of them.

Isolation levels and dirty reads, non-repeatable reads, and phantom rows 

The isolation levels are different with respect to the type of inconsistent behavior that Adaptive Server Anywhere allows. An x means that the behavior is prevented, and a means that the behavior may occur.

Isolation level Dirty reads Non-repeatable reads Phantom rows
0
1 x
2 x x
3 x x x

This table demonstrates two points:

The four isolation levels have different names under ODBC. These names are based on the names of the inconsistencies that they prevent, and are described in The ValuePtr parameter.


Cursor instability

Contents Index Isolation levels and consistency Cursor instability