getTransactionIsolation

Returns the isolation level of the current transaction. Returns an empty string outside a transaction.

getTransactionIsolation([datasource]) → returns string

This function requires Lucee 7.1.0.70 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

datasource string

When given and the transaction has no isolation level set, returns this datasource's default isolation level.

Examples
Sample code invoking the getTransactionIsolation function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub