summaryrefslogtreecommitdiff
path: root/sql/events.h
diff options
context:
space:
mode:
authorunknown <andrey@lmy004.>2006-06-27 10:53:26 +0200
committerunknown <andrey@lmy004.>2006-06-27 10:53:26 +0200
commitd2db48c69bf473101cceffe8305a5922dd1a2af2 (patch)
treef47071c0ce8385678f4b01febbd8945477f25d1b /sql/events.h
parente5f8163b88d019942c5eb205a023a24c3e9cee04 (diff)
downloadmariadb-git-d2db48c69bf473101cceffe8305a5922dd1a2af2.tar.gz
WL#3337 (Events new infrasctructure)
Second cut of separating parsing phase from execution phase Separate Event_timed from parsing phase and introducing Event_parse_data. sql/event_data_objects.cc: second cut, copy Event_timed::init_body() to Event_parse_data::init_body() Init the body during parsing, everything else keep as a pointer to Item or some other pointer to use for later initialization. sql/event_data_objects.h: get the identifier as sp_name*, later will initialize our structures sql/events.cc: for easy transition add temporarily parse_data, later Event_timed *et will be removed. Do slow transition because Event_timed is so tightly integrated that a front-attack by removing things from this class was unsuccessful. Do things step by step by eliminating dependencies. Hence, the code could be checked with the current test suite too (early testing) sql/events.h: for easy transition add temporarily parse_data, later Event_timed *et will be removed. Do slow transition because Event_timed is so tightly integrated that a front-attack by removing things from this class was unsuccessful. Do things step by step by eliminating dependencies. Hence, the code could be checked with the current test suite too (early testing) BitKeeper/etc/ignore: Added libmysql/viosocket.o.6WmSJk libmysqld/event_data_objects.cc libmysqld/event_db_repository.cc libmysqld/event_queue.cc server-tools/instance-manager/net_serv.cc to the ignore list sql/share/errmsg.txt: remove this message, not used and needed for now sql/sql_lex.h: for easy transition add temporarily parse_data, later Event_timed *et will be removed. Do slow transition because Event_timed is so tightly integrated that a front-attack by removing things from this class was unsuccessful. Do things step by step by eliminating dependencies. Hence, the code could be checked with the current test suite too (early testing) sql/sql_parse.cc: for easy transition add temporarily parse_data, later Event_timed *et will be removed. Do slow transition because Event_timed is so tightly integrated that a front-attack by removing things from this class was unsuccessful. Do things step by step by eliminating dependencies. Hence, the code could be checked with the current test suite too (early testing) sql/sql_yacc.yy: for easy transition add temporarily parse_data, later Event_timed *et will be removed. Do slow transition because Event_timed is so tightly integrated that a front-attack by removing things from this class was unsuccessful. Do things step by step by eliminating dependencies. Hence, the code could be checked with the current test suite too (early testing)
Diffstat (limited to 'sql/events.h')
-rw-r--r--sql/events.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/sql/events.h b/sql/events.h
index 66cce6e7777..055c9a371a4 100644
--- a/sql/events.h
+++ b/sql/events.h
@@ -18,6 +18,7 @@
class Event_timed;
+class Event_parse_data;
class Events
{
@@ -47,16 +48,16 @@ public:
};
static int
- create_event(THD *thd, Event_timed *et, uint create_options,
- uint *rows_affected);
+ create_event(THD *thd, Event_timed *et, Event_parse_data *parse_data,
+ uint create_options, uint *rows_affected);
static int
- update_event(THD *thd, Event_timed *et, sp_name *new_name,
- uint *rows_affected);
+ update_event(THD *thd, Event_timed *et, Event_parse_data *parse_data,
+ sp_name *new_name, uint *rows_affected);
static int
- drop_event(THD *thd, Event_timed *et, bool drop_if_exists,
- uint *rows_affected);
+ drop_event(THD *thd, Event_timed *et, Event_parse_data *parse_data,
+ bool drop_if_exists, uint *rows_affected);
static int
open_event_table(THD *thd, enum thr_lock_type lock_type, TABLE **table);