Error firing database connect trigger

47 views
Skip to first unread message

Александр Редько, отдел ДК и ОРП ФГУП "РАДОН"

unread,
Jul 11, 2025, 7:48:57 AMJul 11
to firebird...@googlegroups.com
When converting DB from Firebird v. 2.5.9 to v. 5.0.2 I got a problem.
 
DB (DB5.sql) contains a database connection trigger (CONN_BI0). This trigger when fired copies data from MON$ATTACHMENTS table to table CHG_CONN in another DB (LOG_DB5.sql).
 
For Firebird v. 2.5.9 DB all is OK, but not for Firebird v. 5.0.2: when firing trigger I got a message: "Error reading data from the connection" (Error.jpg).
 
firebird.log says:
================================================= 
mycomp    Wed Jul  9 12:26:08 2025
 
     Access violation.
        The code attempted to access a virtual
        address without privilege to do so.
    This exception will cause the Firebird server
    to terminate abnormally.
==================================================
But the same code in execute block (ExecuteBlock.sql) started after connection is made (with suppress data database triggers key on)  is working OK.
 
OS:Windows7x64
 
Alexandr Redko
DB5.sql
Error.jpg
ExecuteBlock.sql
LOG_DB5.sql

Vlad Khorsun

unread,
Jul 12, 2025, 6:00:31 AMJul 12
to firebird-support
Reply all
Reply to author
Forward
0 new messages