summaryrefslogtreecommitdiff
path: root/sql/event_db_repository.h
diff options
context:
space:
mode:
authorunknown <kostja@vajra.(none)>2007-04-05 15:49:46 +0400
committerunknown <kostja@vajra.(none)>2007-04-05 15:49:46 +0400
commita36054f4201568fac1717b451040ffa7925900a2 (patch)
treea91b4f984fd6317085b8bd7e94cd91134184aab6 /sql/event_db_repository.h
parenta0c4e184f80de8db3b9d1340715502454ee09ef6 (diff)
parentfa1d637e896d71932adcd1451c1564f724590189 (diff)
downloadmariadb-git-a36054f4201568fac1717b451040ffa7925900a2.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-runtime
into vajra.(none):/opt/local/work/mysql-5.1-c1 mysql-test/r/events_bugs.result: Auto merged mysql-test/r/events_scheduling.result: Auto merged mysql-test/t/events.test: Auto merged mysql-test/t/events_scheduling.test: Auto merged sql/event_data_objects.h: Auto merged sql/event_db_repository.h: Auto merged sql/mysqld.cc: Auto merged sql/set_var.cc: Auto merged sql/set_var.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_show.cc: Auto merged sql/table.h: Auto merged sql/share/errmsg.txt: Auto merged mysql-test/r/events.result: e Use local. mysql-test/r/events_restart_phase1.result: Use local mysql-test/r/events_time_zone.result: SCCS merged mysql-test/t/events_restart_phase1.test: Use local sql/event_data_objects.cc: Use local sql/event_db_repository.cc: Manual merge. sql/event_queue.cc: Manual merge. sql/events.cc: Manual merge.
Diffstat (limited to 'sql/event_db_repository.h')
-rw-r--r--sql/event_db_repository.h28
1 files changed, 21 insertions, 7 deletions
diff --git a/sql/event_db_repository.h b/sql/event_db_repository.h
index 10a10d7957a..64e19854933 100644
--- a/sql/event_db_repository.h
+++ b/sql/event_db_repository.h
@@ -15,7 +15,12 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
-#define EVEX_OPEN_TABLE_FAILED -1
+/*
+ @file
+ This is a private header file of Events module. Please do not include it
+ directly. All public declarations of Events module should be stored in
+ events.h and event_data_objects.h.
+*/
enum enum_events_table_field
{
@@ -70,17 +75,28 @@ public:
drop_schema_events(THD *thd, LEX_STRING schema);
bool
- find_named_event(THD *thd, LEX_STRING db, LEX_STRING name, TABLE *table);
+ find_named_event(LEX_STRING db, LEX_STRING name, TABLE *table);
bool
load_named_event(THD *thd, LEX_STRING dbname, LEX_STRING name, Event_basic *et);
- int
+ bool
open_event_table(THD *thd, enum thr_lock_type lock_type, TABLE **table);
- int
+ bool
fill_schema_events(THD *thd, TABLE_LIST *tables, const char *db);
+ bool
+ update_timing_fields_for_event(THD *thd,
+ LEX_STRING event_db_name,
+ LEX_STRING event_name,
+ bool update_last_executed,
+ my_time_t last_executed,
+ bool update_status,
+ ulonglong status);
+public:
+ static bool
+ check_system_tables(THD *thd);
private:
void
drop_events_by_field(THD *thd, enum enum_events_table_field field,
@@ -92,9 +108,7 @@ private:
bool
table_scan_all_for_i_s(THD *thd, TABLE *schema_table, TABLE *event_table);
- static bool
- check_system_tables(THD *thd);
-
+private:
/* Prevent use of these */
Event_db_repository(const Event_db_repository &);
void operator=(Event_db_repository &);