Issue Details (XML | Word | Printable)

Key: CORE-3418
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Vlad Khorsun
Reporter: Maxim Kuzmin
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Database trigger created as INACTIVE is really active

Created: 30/Mar/11 12:46 PM   Updated: 16/May/12 11:36 AM
Component/s: Engine
Affects Version/s: 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.5.0, 2.1.4
Fix Version/s: 2.5.1, 2.1.5, 3.0 Alpha 1

Time Tracking:
Not Specified

Issue Links:
Relate
 

Planning Status: Unspecified


 Description  « Hide
After execute this query db-trigger is active:

SET TERM ^ ;
CREATE OR ALTER TRIGGER TRG$START
  INACTIVE ON TRANSACTION START POSITION 0
AS
BEGIN
    RDB$SET_CONTEXT('USER_SESSION', 'TRANS_ID', CURRENT_TRANSACTION);
END
^
SET TERM ; ^

SELECT RDB$GET_CONTEXT('USER_SESSION', 'TRANS_ID') FROM RDB$DATABASE;

Returns value of CURRENT_TRANSACTION, while result should be NULL.

 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Vlad Khorsun added a comment - 30/Mar/11 11:07 PM
All 2.1.x also affected

Vlad Khorsun added a comment - 31/Mar/11 07:59 PM
Correct description a bit