Skip to content

SET TRANSACTION statement only has effect until next COMMIT [CORE6111] #6360

Open
@firebird-automations

Description

@firebird-automations

Submitted by: @samofatov

This behavior is happening all the way to Firebird 1.0 builds.
I believe the engine shall preserve transaction isolation mode after commit;
Please correct me if I am wrong.

ISQL commands to reproduce:

SQL>create database '/tmp/test.fdb';
SQL>set transaction read committed;
SQL>select mon$isolation_mode from mon$transactions where mon$transaction_id=current_transaction;

MON$ISOLATION_MODE

             3 

SQL> commit;
SQL> select mon$isolation_mode from mon$transactions where mon$transaction_id=current_transaction;

MON$ISOLATION_MODE

             1