fix: add createSql to firebird triggers

This commit is contained in:
Pavel
2025-05-23 00:59:34 +02:00
parent f94901c3b2
commit c767dfb22e
3 changed files with 20 additions and 2 deletions

View File

@@ -2,7 +2,8 @@ module.exports = `
SELECT
TRIM(rtr.RDB$TRIGGER_NAME) as "pureName",
TRIM(rtr.RDB$RELATION_NAME) as "tableName",
rtr.RDB$TRIGGER_TYPE as TRIGGERTYPE
rtr.RDB$TRIGGER_TYPE as TRIGGERTYPE,
CAST(rtr.RDB$TRIGGER_SOURCE AS VARCHAR(8191)) AS TRIGGER_BODY_SQL
FROM
RDB$TRIGGERS rtr
JOIN RDB$RELATIONS rel ON rtr.RDB$RELATION_NAME = rel.RDB$RELATION_NAME