Execute DDL triggers.
| 551 | |
| 552 | // Execute DDL triggers. |
| 553 | void 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 | |
| 572 | void EXE_receive(thread_db* tdbb, |
nothing calls this directly
no test coverage detected