Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AV in engine when using SET TRANSACTION and ON TRANSACTION START trigger uses EXECUTE STATEMENT against current transaction [CORE6254] #6497

Closed
firebird-automations opened this issue Feb 20, 2020 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

To reproduce, attach with isql to the any database and run:

set term ^;
create or alter trigger trg_tx_start on transaction start
as
declare tx int;
begin
execute statement ('select current_transaction from rdb$database')
into :tx;
end
^
set term ;^
commit;

-- new transaction using API, OK
select current_transaction from rdb$database;
commit;

-- new transaction using SQL, AV on commit
set transaction;
select current_transaction from rdb$database;
commit;

drop trigger trg_tx_start;
commit;

Commits: b205e04 7e5b0ce

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 4.0 Beta 2 [ 10888 ]

Fix Version: 3.0.6 [ 10889 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Component: Engine [ 10000 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment