RDB$TRIGGER_TYPE Value
The value of RDB$TRIGGER_TYPE is built from:
1
 | 
 before insert  | 
2
 | 
 after insert  | 
3
 | 
 before update  | 
4
 | 
 after update  | 
5
 | 
 before delete  | 
6
 | 
 after delete  | 
17
 | 
 before insert or update  | 
18
 | 
 after insert or update  | 
25
 | 
 before insert or delete  | 
26
 | 
 after insert or delete  | 
27
 | 
 before update or delete  | 
28
 | 
 after update or delete  | 
113
 | 
 before insert or update or delete  | 
114
 | 
 after insert or update or delete  | 
8192
 | 
 on connect  | 
8193
 | 
 on disconnect  | 
8194
 | 
 on transaction start  | 
8195
 | 
 on transaction commit  | 
8196
 | 
 on transaction rollback  | 
| 
 Note 
 | 
 Identification of the exact   | 
For DDL triggers, the trigger type is obtained by bitwise OR above the event phase (0 — BEFORE, 1 — AFTER) and all listed types events:
0x0000000000004002
 | 
 
  | 
0x0000000000004004
 | 
 
  | 
0x0000000000004008
 | 
 
  | 
0x0000000000004010
 | 
 
  | 
0x0000000000004020
 | 
 
  | 
0x0000000000004040
 | 
 
  | 
0x0000000000004080
 | 
 
  | 
0x0000000000004100
 | 
 
  | 
0x0000000000004200
 | 
 
  | 
0x0000000000004400
 | 
 
  | 
0x0000000000004800
 | 
 
  | 
0x0000000000005000
 | 
 
  | 
0x0000000000014000
 | 
 
  | 
0x0000000000024000
 | 
 
  | 
0x0000000000044000
 | 
 
  | 
0x0000000000084000
 | 
 
  | 
0x0000000000104000
 | 
 
  | 
0x0000000000204000
 | 
 
  | 
0x0000000000404000
 | 
 
  | 
0x0000000000804000
 | 
 
  | 
0x0000000001004000
 | 
 
  | 
0x0000000002004000
 | 
 
  | 
0x0000000004004000
 | 
 
  | 
0x0000000008004000
 | 
 
  | 
0x0000000010004000
 | 
 
  | 
0x0000000020004000
 | 
 
  | 
0x0000000040004000
 | 
 
  | 
0x0000000080004000
 | 
 
  | 
0x0000000100004000
 | 
 
  | 
0x0000000200004000
 | 
 
  | 
0x0000000400004000
 | 
 
  | 
0x0000000800004000
 | 
 
  | 
0x0000001000004000
 | 
 
  | 
0x0000002000004000
 | 
 
  | 
0x0000004000004000
 | 
 
  | 
0x0000008000004000
 | 
 
  | 
0x0000010000004000
 | 
 
  | 
0x0000020000004000
 | 
 
  | 
0x0000040000004000
 | 
 
  | 
0x0000080000004000
 | 
 
  | 
0x0000100000004000
 | 
 
  | 
0x0000200000004000
 | 
 
  | 
0x0000400000004000
 | 
 
  | 
0x0000800000004000
 | 
 
  | 
0x7FFFFFFFFFFFDFFE
 | 
 
  | 
For example a trigger withBEFORE CREATE PROCEDURE OR CREATE FUNCTION will be of type 0x0000000000004090,AFTER CREATE PROCEDURE OR CREATE FUNCTION — 0x0000000000004091,BEFORE DROP FUNCTION OR DROP EXCEPTION — 0x00000000000044200,AFTER DROP FUNCTION OR DROP EXCEPTION — 0x00000000000044201,BEFORE DROP TRIGGER OR DROP DOMAIN — 0x00000000001005000,AFTER DROP TRIGGER OR DROP DOMAIN — 0x00000000001005001.