1
/* Copyright (C) 2000-2003 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
16
#ifndef _EVENT_PARSE_DATA_H_
17
#define _EVENT_PARSE_DATA_H_
19
#define EVEX_GET_FIELD_FAILED -2
20
#define EVEX_BAD_PARAMS -5
21
#define EVEX_MICROSECOND_UNSUP -6
22
#define EVEX_MAX_INTERVAL_VALUE 1000000000L
24
class Event_parse_data : public Sql_alloc
28
ENABLED = feature can function normally (is turned on)
29
SLAVESIDE_DISABLED = feature is turned off on slave
30
DISABLED = feature is turned off
39
enum enum_on_completion
41
ON_COMPLETION_DROP = 1,
42
ON_COMPLETION_PRESERVE
49
do_not_create will be set if STARTS time is in the past and
50
on_completion == ON_COMPLETION_DROP.
58
LEX_STRING definer;// combination of user and host
63
Item* item_execute_at;
70
my_bool execute_at_null;
73
Item* item_expression;
75
interval_type interval;
77
static Event_parse_data *
78
new_instance(THD *thd);
81
check_parse_data(THD *thd);
86
init_definer(THD *thd);
89
init_name(THD *thd, sp_name *spn);
92
init_execute_at(THD *thd);
95
init_interval(THD *thd);
98
init_starts(THD *thd);
107
report_bad_value(const char *item_name, Item *bad_item);
110
check_if_in_the_past(THD *thd, my_time_t ltime_utc);
112
Event_parse_data(const Event_parse_data &); /* Prevent use of these */
113
void check_originator_id(THD *thd);
114
void operator=(Event_parse_data &);