Database connect trigger is not always not executed.
For example, given such trigger:
CREATE OR ALTER trigger trg_db_connect
active on connect position 0
AS
begin
rdb$set_context('USER_SESSION', 'ACTIVE_LANGUAGE', 'en');
end
The value "en" is sometimes not found after successfully connecting to the database. Typically the issue is observed when multiple attachments to the server (and same database?) are attempted at the same time.
Reproduced.
The issue is due to race condition in MET_load_db_triggers - while one attachment loads triggers, another one could see it as already loaded empty vector.
Submitted by: Lauri Zoova (lz)
Database connect trigger is not always not executed.
For example, given such trigger:
CREATE OR ALTER trigger trg_db_connect
active on connect position 0
AS
begin
rdb$set_context('USER_SESSION', 'ACTIVE_LANGUAGE', 'en');
end
The value "en" is sometimes not found after successfully connecting to the database. Typically the issue is observed when multiple attachments to the server (and same database?) are attempted at the same time.
Commits: 7105562 FirebirdSQL/fbt-repository@34898a9
====== Test Details ======
Race condition, see comments below.
The text was updated successfully, but these errors were encountered: