MCPcopy Create free account
hub / github.com/MariaDB/server / ddl_log_create_trigger

Function ddl_log_create_trigger

sql/ddl_log.cc:3432–3447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3430*/
3431
3432bool ddl_log_create_trigger(DDL_LOG_STATE *ddl_state,
3433 const LEX_CSTRING *db, const LEX_CSTRING *table,
3434 const LEX_CSTRING *trigger_name,
3435 enum_ddl_log_create_trigger_phase phase)
3436{
3437 DDL_LOG_ENTRY ddl_log_entry;
3438 DBUG_ENTER("ddl_log_create_view");
3439
3440 bzero(&ddl_log_entry, sizeof(ddl_log_entry));
3441 ddl_log_entry.action_type= DDL_LOG_CREATE_TRIGGER_ACTION;
3442 ddl_log_entry.db= *const_cast<LEX_CSTRING*>(db);
3443 ddl_log_entry.name= *const_cast<LEX_CSTRING*>(table);
3444 ddl_log_entry.tmp_name= *const_cast<LEX_CSTRING*>(trigger_name);
3445 ddl_log_entry.phase= (uchar) phase;
3446 DBUG_RETURN(ddl_log_write(ddl_state, &ddl_log_entry));
3447}
3448
3449
3450/**

Callers 1

create_triggerMethod · 0.85

Calls 1

ddl_log_writeFunction · 0.85

Tested by

no test coverage detected