MySQL 9.1.0
Source Code Documentation
dd_trigger.cc File Reference
#include "sql/dd/dd_trigger.h"
#include <string.h>
#include <memory>
#include "m_string.h"
#include "my_alloc.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_sys.h"
#include "mysqld_error.h"
#include "sql/dd/cache/dictionary_client.h"
#include "sql/dd/string_type.h"
#include "sql/dd/types/table.h"
#include "sql/dd/types/trigger.h"
#include "sql/dd_table_share.h"
#include "sql/item_create.h"
#include "sql/key.h"
#include "sql/sql_class.h"
#include "sql/sql_list.h"
#include "sql/sql_servers.h"
#include "sql/strfunc.h"
#include "sql/system_variables.h"
#include "sql/table.h"
#include "sql/trigger.h"

Namespaces

namespace  dd
 The version of the current data dictionary table definitions.
 

Functions

static Trigger::enum_event_type dd::get_dd_event_type (const ::Trigger *new_trigger)
 Get DD API value of event type for a trigger. More...
 
static Trigger::enum_action_timing dd::get_dd_action_timing (const ::Trigger *new_trigger)
 Get DD API value of action timing for a trigger. More...
 
static bool dd::fill_in_dd_trigger_object (const ::Trigger *new_trigger, Trigger *dd_trig_obj)
 Fill in a dd::Trigger object based on a Trigger object supplied by sql-layer. More...
 
bool dd::create_trigger (THD *thd, const ::Trigger *new_trigger, enum_trigger_order_type ordering_clause, const LEX_CSTRING &referenced_trigger_name)
 Create new trigger in the data dictionary. More...
 
static enum_trigger_event_type dd::convert_event_type_from_dd (dd::Trigger::enum_event_type event_type)
 Convert event type value from DD presentation to generic SQL presentation. More...
 
static enum_trigger_action_time_type dd::convert_action_time_from_dd (dd::Trigger::enum_action_timing action_timing)
 Convert action timing value from DD presentation to generic SQL presentation. More...
 
bool dd::load_triggers (THD *thd, MEM_ROOT *mem_root, const char *schema_name, const char *table_name, const dd::Table &table, List<::Trigger > *triggers)
 Load table triggers from the data dictionary. More...
 
bool dd::table_has_triggers (THD *thd, const char *schema_name, const char *table_name, bool *table_has_trigger)
 Check in the data dictionary if there is any trigger associated with a table. More...