AV in engine when using SET TRANSACTION and ON TRANSACTION START trigger uses 
EXECUTE STATEMENT against current transaction
---------------------------------------------------------------------------------------------------------------------------

                 Key: CORE-6254
                 URL: http://tracker.firebirdsql.org/browse/CORE-6254
             Project: Firebird Core
          Issue Type: Bug
    Affects Versions: 3.0.5, 4.0 Beta 1, 3.0.4, 3.0.3, 4.0 Alpha 1, 3.0.2, 
3.0.1, 3.0.0, 4.0 Initial
            Reporter: Vlad Khorsun


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;



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to