diff options
author | unknown <andrey@lmy004.> | 2006-06-28 01:28:03 +0200 |
---|---|---|
committer | unknown <andrey@lmy004.> | 2006-06-28 01:28:03 +0200 |
commit | acefb78bc3fbf28376d8713e1dc9f056dc3cdbf6 (patch) | |
tree | bf91f4ab6e97d25e3da5172541a1f76237dccfe4 /sql/event_data_objects.h | |
parent | cace147c63a03b4dc9bd3e55ae3bda4f5e9db97b (diff) | |
download | mariadb-git-acefb78bc3fbf28376d8713e1dc9f056dc3cdbf6.tar.gz |
WL#3337 (Events new architecture)
5th cut, moved DB related code to Event_db_repository and
updated accordingly the remanining code.
Moved change/restore_security_context() to class THD
Removed events_priv.h
Next step is to reorganize create/update_event() and parsing for them.
But probably some other refactoring could be done in the meanwhile.
The changes so far pass the test suite.
BitKeeper/deleted/.del-events_priv.h~2e8bce2cf35997df:
Delete: sql/events_priv.h
sql/Makefile.am:
events_priv.h is no more
sql/event_data_objects.cc:
reorganize events code
sql/event_data_objects.h:
reorganize events code
sql/event_db_repository.cc:
reorganize events code
sql/event_db_repository.h:
reorganize events code
sql/event_scheduler.cc:
reorganize events code
sql/event_scheduler.h:
reorganize events code
sql/events.cc:
reorganize events code
sql/events.h:
reorganize events code
sql/mysqld.cc:
reorganize events code
sql/set_var.cc:
reorganize events code
sql/sql_class.cc:
add ::change_security_context() and restore_security_context()
sql/sql_class.h:
add ::change_security_context() and restore_security_context()
sql/sql_db.cc:
reorganize Events code
sql/sql_parse.cc:
reorganize Events code
sql/sql_show.cc:
reorganize Events code
Diffstat (limited to 'sql/event_data_objects.h')
-rw-r--r-- | sql/event_data_objects.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sql/event_data_objects.h b/sql/event_data_objects.h index a9483465a8d..ff547cebd5b 100644 --- a/sql/event_data_objects.h +++ b/sql/event_data_objects.h @@ -40,9 +40,35 @@ #define EVENT_FREE_WHEN_FINISHED (1L << 2) +#define EVENT_EXEC_STARTED 0 +#define EVENT_EXEC_ALREADY_EXEC 1 +#define EVENT_EXEC_CANT_FORK 2 + + class sp_head; class Sql_alloc; +class Event_timed; + +/* Compares only the schema part of the identifier */ +bool +event_timed_db_equal(Event_timed *et, LEX_STRING *db); + + +/* Compares the whole identifier*/ +bool +event_timed_identifier_equal(Event_timed *a, Event_timed *b); + +/* Compares only the schema part of the identifier */ +bool +event_timed_db_equal(sp_name *name, LEX_STRING *db); + + +/* Compares the whole identifier*/ +bool +event_timed_identifier_equal(sp_name *a, Event_timed *b); + + class Event_timed { Event_timed(const Event_timed &); /* Prevent use of these */ @@ -296,4 +322,10 @@ public: }; + +class Event_queue_element : public Event_timed +{ + +}; + #endif /* _EVENT_DATA_OBJECTS_H_ */ |