MySQL 9.1.0
Source Code Documentation
dd_event.cc File Reference
#include "sql/dd/dd_event.h"
#include <memory>
#include <string>
#include "lex_string.h"
#include "my_dbug.h"
#include "mysql/components/services/log_builtins.h"
#include "mysql/components/services/log_shared.h"
#include "mysql/my_loglevel.h"
#include "mysqld_error.h"
#include "sql/dd/cache/dictionary_client.h"
#include "sql/dd/impl/utils.h"
#include "sql/dd/types/schema.h"
#include "sql/event_parse_data.h"
#include "sql/log.h"
#include "sql/sql_class.h"
#include "sql/sql_connect.h"
#include "sql/sql_db.h"
#include "sql/sql_lex.h"
#include "sql/system_variables.h"
#include "sql/tztime.h"
#include "sql_string.h"

Namespaces

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

Functions

int dd::get_old_status (Event::enum_event_status event_status)
 Convert new DD Event::enum_event_status to status type used in server code. More...
 
static Event::enum_event_status dd::get_enum_event_status (int event_status)
 Convert legacy event status to dd::Event::enum_event_status. More...
 
int dd::get_old_on_completion (Event::enum_on_completion on_completion)
 Convert new DD Event::enum_on_completion to completion type used in server code. More...
 
static Event::enum_on_completion dd::get_on_completion (Event_parse_data::enum_on_completion on_completion)
 Convert legacy event on completion behavior to dd::Event::enum_on_compeltion. More...
 
interval_type dd::get_old_interval_type (Event::enum_interval_field interval_field)
 Convert new DD interval_field type to type interval_type used in server code. More...
 
static Event::enum_interval_field dd::get_enum_interval_field (interval_type interval_type_val)
 Convert legacy interval type value to dd::Event::enum_interval_field. More...
 
static void dd::set_event_attributes (THD *thd, const dd::Schema &schema, Event *event, const String_type &event_name, const String_type &event_body, const String_type &event_body_utf8, const LEX_USER *definer, Event_parse_data *event_data, bool is_update)
 Set Event attributes. More...
 
bool dd::create_event (THD *thd, const Schema &schema, const String_type &event_name, const String_type &event_body, const String_type &event_body_utf8, const LEX_USER *definer, Event_parse_data *event_data)
 Create an event object and commit it to DD Table Events. More...
 
bool dd::update_event (THD *thd, Event *event, const dd::Schema &schema, const dd::Schema *new_schema, const String_type &new_event_name, const String_type &new_event_body, const String_type &new_event_body_utf8, const LEX_USER *definer, Event_parse_data *event_data)
 Create or update a event object and commit it to DD Table Events. More...
 
bool dd::update_event_time_and_status (THD *thd, Event *event, my_time_t last_executed, ulonglong status)
 Update time related fields of Event object. More...
 

Variables

static const char * dd::failsafe_object = "Event status option"