summaryrefslogtreecommitdiff
path: root/sql/event.h
diff options
context:
space:
mode:
authorunknown <andrey@lmy004.>2006-02-14 17:05:36 +0100
committerunknown <andrey@lmy004.>2006-02-14 17:05:36 +0100
commit752cadd45379e9c36ff8c6cc29ba64a823216530 (patch)
tree59bdc70b2c14fdc871f15349eb18e49c53bbcd99 /sql/event.h
parentf36bcd0e95a17183deecfeda663d424c5cdd9a7c (diff)
parent8d4f74be2d9b00e435fb22475414a0a68729092f (diff)
downloadmariadb-git-752cadd45379e9c36ff8c6cc29ba64a823216530.tar.gz
manual merge
mysql-test/r/events.result: Auto merged mysql-test/t/events.test: Auto merged sql/event.h: Auto merged sql/event_executor.cc: Auto merged sql/event_timed.cc: Auto merged sql/sql_acl.cc: Auto merged sql/sql_acl.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_show.cc: Auto merged sql/sql_yacc.yy: Auto merged sql/table.cc: Auto merged sql/table.h: Auto merged
Diffstat (limited to 'sql/event.h')
-rw-r--r--sql/event.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/sql/event.h b/sql/event.h
index 1fe5c8e5713..27abccf5b89 100644
--- a/sql/event.h
+++ b/sql/event.h
@@ -109,6 +109,7 @@ public:
enum enum_event_on_completion on_completion;
enum enum_event_status status;
sp_head *sphead;
+ ulong sql_mode;
const uchar *body_begin;
@@ -119,8 +120,9 @@ public:
event_timed():running(0), status_changed(false), last_executed_changed(false),
expression(0), created(0), modified(0),
on_completion(MYSQL_EVENT_ON_COMPLETION_DROP),
- status(MYSQL_EVENT_ENABLED), sphead(0), dropped(false),
- free_sphead_on_delete(true), flags(0)
+ status(MYSQL_EVENT_ENABLED), sphead(0), sql_mode(0),
+ body_begin(0), dropped(false), free_sphead_on_delete(true),
+ flags(0)
{
pthread_mutex_init(&this->LOCK_running, MY_MUTEX_INIT_FAST);
@@ -177,8 +179,8 @@ public:
bool
update_fields(THD *thd);
- char *
- get_show_create_event(THD *thd, uint32 *length);
+ int
+ get_create_event(THD *thd, String *buf);
int
execute(THD *thd, MEM_ROOT *mem_root= NULL);
@@ -221,9 +223,17 @@ evex_drop_event(THD *thd, event_timed *et, bool drop_if_exists,
int
evex_open_event_table(THD *thd, enum thr_lock_type lock_type, TABLE **table);
+int
+evex_show_create_event(THD *thd, sp_name *spn, LEX_STRING definer);
+
int sortcmp_lex_string(LEX_STRING s, LEX_STRING t, CHARSET_INFO *cs);
int
+event_reconstruct_interval_expression(String *buf,
+ interval_type interval,
+ longlong expression);
+
+int
init_events();
void