diff options
author | andrey@lmy004. <> | 2006-06-27 11:51:11 +0200 |
---|---|---|
committer | andrey@lmy004. <> | 2006-06-27 11:51:11 +0200 |
commit | 4e0a752ff6e3fd8f5d1fbabba6e296d4b4c71ac0 (patch) | |
tree | 7b795dc8246cf6e4fffc0272f2f6500ae979babe /sql/events.h | |
parent | 04659677a884eaae7c58cf71904853adee580943 (diff) | |
download | mariadb-git-4e0a752ff6e3fd8f5d1fbabba6e296d4b4c71ac0.tar.gz |
WL#3337 (Event scheduler new architecture)
Third cut to simplify parsing phase. Now DROP EVENT works.
Overloaded few functions to be able to use either sp_name or pass two LEX_STRINGs
instead of a Event_timed pointer. This is transitional and eventually the old
functions will be removed. For now DROP EVENT also works, does not need anymore
a parsing object (Event_timed) and definer initialization because everyone who
has EVENT_ACL can drop events, and this is checked on execution time in sql_parse.cc
from the security context, as it should be.
Diffstat (limited to 'sql/events.h')
-rw-r--r-- | sql/events.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/events.h b/sql/events.h index 055c9a371a4..d56a544493d 100644 --- a/sql/events.h +++ b/sql/events.h @@ -16,7 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ - +class sp_name; class Event_timed; class Event_parse_data; @@ -56,8 +56,7 @@ public: sp_name *new_name, uint *rows_affected); static int - drop_event(THD *thd, Event_timed *et, Event_parse_data *parse_data, - bool drop_if_exists, uint *rows_affected); + drop_event(THD *thd, sp_name *name, bool drop_if_exists, uint *rows_affected); static int open_event_table(THD *thd, enum thr_lock_type lock_type, TABLE **table); |