17 #ifndef _EVENT_PARSE_DATA_H_
18 #define _EVENT_PARSE_DATA_H_
20 #include "sql_alloc.h"
26 #define EVEX_GET_FIELD_FAILED -2
27 #define EVEX_BAD_PARAMS -5
28 #define EVEX_MICROSECOND_UNSUP -6
29 #define EVEX_MAX_INTERVAL_VALUE 1000000000L
46 enum enum_on_completion
52 ON_COMPLETION_DEFAULT = 0,
54 ON_COMPLETION_PRESERVE
76 Item* item_execute_at;
83 my_bool execute_at_null;
86 Item* item_expression;
88 interval_type interval;
91 new_instance(THD *thd);
94 check_parse_data(THD *thd);
97 check_dates(THD *thd,
int previous_on_completion);
102 init_definer(THD *thd);
105 init_name(THD *thd,
sp_name *spn);
108 init_execute_at(THD *thd);
111 init_interval(THD *thd);
114 init_starts(THD *thd);
123 report_bad_value(
const char *item_name,
Item *bad_item);
126 check_if_in_the_past(THD *thd, my_time_t ltime_utc);
129 void check_originator_id(THD *thd);