MySQL 8.4.3
Source Code Documentation
Event_parse_data Class Reference

#include <event_parse_data.h>

Public Types

enum  enum_status { ENABLED = 1 , DISABLED , REPLICA_SIDE_DISABLED }
 
enum  enum_on_completion { ON_COMPLETION_DEFAULT = 0 , ON_COMPLETION_DROP , ON_COMPLETION_PRESERVE }
 

Public Member Functions

bool check_parse_data (THD *thd)
 
bool check_dates (THD *thd, int previous_on_completion)
 
 Event_parse_data ()
 
 ~Event_parse_data ()=default
 

Public Attributes

int on_completion
 
int status
 
bool status_changed
 
longlong originator
 
bool do_not_create
 
bool body_changed
 
LEX_CSTRING dbname
 
LEX_CSTRING name
 
LEX_STRING definer
 
LEX_STRING comment
 
Itemitem_starts
 
Itemitem_ends
 
Itemitem_execute_at
 
my_time_t starts
 
my_time_t ends
 
my_time_t execute_at
 
bool starts_null
 
bool ends_null
 
bool execute_at_null
 
sp_nameidentifier
 
Itemitem_expression
 
longlong expression
 
interval_type interval
 

Private Member Functions

void init_definer (THD *thd)
 
void init_name (THD *thd, sp_name *spn)
 
int init_execute_at (THD *thd)
 
int init_interval (THD *thd)
 
int init_starts (THD *thd)
 
int init_ends (THD *thd)
 
void report_bad_value (THD *thd, const char *item_name, Item *bad_item)
 
void check_if_in_the_past (THD *thd, my_time_t ltime_utc)
 
 Event_parse_data (const Event_parse_data &)
 
void check_originator_id (THD *thd)
 Set the originator id of the event to the server_id if executing on the source or set to the server_id of the source if executing on the replica. More...
 
void operator= (Event_parse_data &)
 

Member Enumeration Documentation

◆ enum_on_completion

Enumerator
ON_COMPLETION_DEFAULT 
ON_COMPLETION_DROP 
ON_COMPLETION_PRESERVE 

◆ enum_status

Enumerator
ENABLED 
DISABLED 
REPLICA_SIDE_DISABLED 

Constructor & Destructor Documentation

◆ Event_parse_data() [1/2]

Event_parse_data::Event_parse_data ( )
inline

◆ ~Event_parse_data()

Event_parse_data::~Event_parse_data ( )
default

◆ Event_parse_data() [2/2]

Event_parse_data::Event_parse_data ( const Event_parse_data )
private

Member Function Documentation

◆ check_dates()

bool Event_parse_data::check_dates ( THD thd,
int  previous_on_completion 
)

◆ check_if_in_the_past()

void Event_parse_data::check_if_in_the_past ( THD thd,
my_time_t  ltime_utc 
)
private

◆ check_originator_id()

void Event_parse_data::check_originator_id ( THD thd)
private

Set the originator id of the event to the server_id if executing on the source or set to the server_id of the source if executing on the replica.

If executing on replica, also set status to REPLICA_SIDE_DISABLED.

SYNOPSIS Event_parse_data::check_originator_id()

◆ check_parse_data()

bool Event_parse_data::check_parse_data ( THD thd)

◆ init_definer()

void Event_parse_data::init_definer ( THD thd)
private

◆ init_ends()

int Event_parse_data::init_ends ( THD thd)
private

◆ init_execute_at()

int Event_parse_data::init_execute_at ( THD thd)
private

◆ init_interval()

int Event_parse_data::init_interval ( THD thd)
private

◆ init_name()

void Event_parse_data::init_name ( THD thd,
sp_name spn 
)
private

◆ init_starts()

int Event_parse_data::init_starts ( THD thd)
private

◆ operator=()

void Event_parse_data::operator= ( Event_parse_data )
private

◆ report_bad_value()

void Event_parse_data::report_bad_value ( THD thd,
const char *  item_name,
Item bad_item 
)
private

Don't proceed to val_str() if an error has already been raised.

Member Data Documentation

◆ body_changed

bool Event_parse_data::body_changed

◆ comment

LEX_STRING Event_parse_data::comment

◆ dbname

LEX_CSTRING Event_parse_data::dbname

◆ definer

LEX_STRING Event_parse_data::definer

◆ do_not_create

bool Event_parse_data::do_not_create

◆ ends

my_time_t Event_parse_data::ends

◆ ends_null

bool Event_parse_data::ends_null

◆ execute_at

my_time_t Event_parse_data::execute_at

◆ execute_at_null

bool Event_parse_data::execute_at_null

◆ expression

longlong Event_parse_data::expression

◆ identifier

sp_name* Event_parse_data::identifier

◆ interval

interval_type Event_parse_data::interval

◆ item_ends

Item* Event_parse_data::item_ends

◆ item_execute_at

Item* Event_parse_data::item_execute_at

◆ item_expression

Item* Event_parse_data::item_expression

◆ item_starts

Item* Event_parse_data::item_starts

◆ name

LEX_CSTRING Event_parse_data::name

◆ on_completion

int Event_parse_data::on_completion

◆ originator

longlong Event_parse_data::originator

◆ starts

my_time_t Event_parse_data::starts

◆ starts_null

bool Event_parse_data::starts_null

◆ status

int Event_parse_data::status

◆ status_changed

bool Event_parse_data::status_changed

The documentation for this class was generated from the following files: