MySQL 9.0.0
Source Code Documentation
|
#include "sql/event_parse_data.h"
#include <string.h>
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_sqlcommand.h"
#include "my_sys.h"
#include "mysql/strings/m_ctype.h"
#include "mysql/thread_type.h"
#include "mysql_time.h"
#include "mysqld_error.h"
#include "sql/derror.h"
#include "sql/events.h"
#include "sql/item.h"
#include "sql/item_timefunc.h"
#include "sql/mysqld.h"
#include "sql/sp_head.h"
#include "sql/sql_class.h"
#include "sql/sql_cmd.h"
#include "sql/sql_const.h"
#include "sql/sql_error.h"
#include "sql/sql_lex.h"
#include "sql/table.h"
#include "sql/thd_raii.h"
#include "sql_parse.h"
#include "sql_string.h"
#include "tztime.h"
Classes | |
struct | anonymous_namespace{event_parse_data.cc}::Sql_cmd_event_base |
Base class which holds the Event_parse_data object. More... | |
struct | anonymous_namespace{event_parse_data.cc}::Sql_cmd_event< SQLCOM > |
Override Sql_cmd for EVENTs to get a customization point for prepare. More... | |
Namespaces | |
namespace | anonymous_namespace{event_parse_data.cc} |
Functions | |
static bool | ResolveScalarItem (THD *thd, Item **item) |
Resolves an item and checks that it returns a single column. More... | |
bool | anonymous_namespace{event_parse_data.cc}::check_event_schedule_expression (THD *thd) |
Check and report error if event schedule expression contains subqueries or stored function calls. More... | |
Sql_cmd * | make_create_event_sql_cmd (THD *thd, sp_name *event_ident) |
Factory function used by the parser to create the actual Sql_cmd for create event, since no Parse_tree node is created for EVENT statements. More... | |
Sql_cmd * | make_alter_event_sql_cmd (THD *thd, sp_name *event_ident) |
Factory function used by the parser to create the actual Sql_cmd for alter event, since no Parse_tree node is created for EVENT statements. More... | |
Sql_cmd * | make_drop_event_sql_cmd (THD *thd, sp_name *event_ident) |
Factory function used by the parser to create the actual Sql_cmd for drop event, since no Parse_tree node is created for EVENT statements. More... | |
Event_parse_data * | get_event_parse_data (LEX *lex) |
Helper function to retrieve Event_parse_data from the type erased Sql_cmd. More... | |
void | cleanup_event_parse_data (LEX *lex) |
Cleans up event parse data by destroying the event_body sp_head. More... | |
void cleanup_event_parse_data | ( | LEX * | lex | ) |
Cleans up event parse data by destroying the event_body sp_head.
Event_parse_data * get_event_parse_data | ( | LEX * | lex | ) |
Helper function to retrieve Event_parse_data from the type erased Sql_cmd.
This is needed since the parser currently need to refer to Event_parse_data after the Sql_cmd has been created.
Factory function used by the parser to create the actual Sql_cmd for alter event, since no Parse_tree node is created for EVENT statements.
Factory function used by the parser to create the actual Sql_cmd for create event, since no Parse_tree node is created for EVENT statements.
Factory function used by the parser to create the actual Sql_cmd for drop event, since no Parse_tree node is created for EVENT statements.