MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / EXE_execute_ddl_triggers

Function EXE_execute_ddl_triggers

src/jrd/exe.cpp:553–569  ·  view source on GitHub ↗

Execute DDL triggers.

Source from the content-addressed store, hash-verified

551
552// Execute DDL triggers.
553void EXE_execute_ddl_triggers(thread_db* tdbb, jrd_tra* transaction, bool preTriggers, int action)
554{
555 const auto attachment = tdbb->getAttachment();
556
557 // Our caller verifies (ATT_no_db_triggers) if DDL triggers should not run
558
559 if (attachment->att_ddl_triggers)
560 {
561 AutoSetRestore2<jrd_tra*, thread_db> tempTrans(tdbb,
562 &thread_db::getTransaction,
563 &thread_db::setTransaction,
564 transaction);
565
566 EXE_execute_triggers(tdbb, &attachment->att_ddl_triggers, NULL, NULL, TRIGGER_DDL,
567 preTriggers ? StmtNode::PRE_TRIG : StmtNode::POST_TRIG, action);
568 }
569}
570
571
572void EXE_receive(thread_db* tdbb,

Callers

nothing calls this directly

Calls 2

EXE_execute_triggersFunction · 0.85
getAttachmentMethod · 0.45

Tested by

no test coverage detected