From 3e4b79d9cafea4d1e86ddba6c8f5658f4c4ef23c Mon Sep 17 00:00:00 2001 From: unknown <andrey@example.com> Date: Mon, 21 Aug 2006 17:16:46 +0200 Subject: [PATCH] Minor change - fixed function documentation and added const for two parameters. sql/event_db_repository.cc: add a missing documentation of a parameter add const to two parameters sql/event_db_repository.h: Added const to two parameters --- sql/event_db_repository.cc | 7 +++++-- sql/event_db_repository.h | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sql/event_db_repository.cc b/sql/event_db_repository.cc index 8c31b65ece..c6b84a1c84 100644 --- a/sql/event_db_repository.cc +++ b/sql/event_db_repository.cc @@ -253,6 +253,7 @@ err_truncate: thd Thread schema_table The I_S.EVENTS table event_table The event table to use for loading (mysql.event) + db For which schema to do an index scan. RETURN VALUE 0 OK @@ -261,7 +262,8 @@ err_truncate: bool Event_db_repository::index_read_for_db_for_i_s(THD *thd, TABLE *schema_table, - TABLE *event_table, char *db) + TABLE *event_table, + const char *db) { int ret=0; CHARSET_INFO *scs= system_charset_info; @@ -369,7 +371,8 @@ Event_db_repository::table_scan_all_for_i_s(THD *thd, TABLE *schema_table, */ int -Event_db_repository::fill_schema_events(THD *thd, TABLE_LIST *tables, char *db) +Event_db_repository::fill_schema_events(THD *thd, TABLE_LIST *tables, + const char *db) { TABLE *schema_table= tables->table; TABLE *event_table= NULL; diff --git a/sql/event_db_repository.h b/sql/event_db_repository.h index 898e27fffe..10f2fa8632 100644 --- a/sql/event_db_repository.h +++ b/sql/event_db_repository.h @@ -80,7 +80,7 @@ public: open_event_table(THD *thd, enum thr_lock_type lock_type, TABLE **table); int - fill_schema_events(THD *thd, TABLE_LIST *tables, char *db); + fill_schema_events(THD *thd, TABLE_LIST *tables, const char *db); private: void @@ -88,7 +88,7 @@ private: LEX_STRING field_value); bool index_read_for_db_for_i_s(THD *thd, TABLE *schema_table, TABLE *event_table, - char *db); + const char *db); bool table_scan_all_for_i_s(THD *thd, TABLE *schema_table, TABLE *event_table); -- 2.30.9