summaryrefslogtreecommitdiff
path: root/sql/sql_parse.h
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2010-08-31 13:59:51 +0400
committerAlexander Nozdrin <alik@sun.com>2010-08-31 13:59:51 +0400
commit587f776cfe8cf70771cf0923199a25de710df6c4 (patch)
treea072bd6416c37d119f34bf4c471bda7898a34bc5 /sql/sql_parse.h
parentbc834b7b11e0e50ffb15996869fb2761cb149aed (diff)
downloadmariadb-git-587f776cfe8cf70771cf0923199a25de710df6c4.tar.gz
Remove check_merge_table_access().
check_merge_table_access() used to do two things: - set proper database for every merge table child; - check SELECT | UPDATE | DELETE for merge table children. Setting database is not needed anymore, since it's done on the parsing stage. Thus, check_merge_table_access() can be removed; needed privileges can be checked using check_table_access().
Diffstat (limited to 'sql/sql_parse.h')
-rw-r--r--sql/sql_parse.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/sql_parse.h b/sql/sql_parse.h
index ad620544d29..c9b0f981d19 100644
--- a/sql/sql_parse.h
+++ b/sql/sql_parse.h
@@ -153,7 +153,6 @@ bool check_single_table_access(THD *thd, ulong privilege,
bool check_routine_access(THD *thd,ulong want_access,char *db,char *name,
bool is_proc, bool no_errors);
bool check_some_access(THD *thd, ulong want_access, TABLE_LIST *table);
-bool check_merge_table_access(THD *thd, char *db, TABLE_LIST *table_list);
bool check_some_routine_access(THD *thd, const char *db, const char *name, bool is_proc);
bool check_access(THD *thd, ulong want_access, const char *db, ulong *save_priv,
GRANT_INTERNAL_INFO *grant_internal_info,
@@ -176,8 +175,6 @@ inline bool check_some_access(THD *thd, ulong want_access, TABLE_LIST *table)
table->grant.privilege= want_access;
return false;
}
-inline bool check_merge_table_access(THD *thd, char *db, TABLE_LIST *table_list)
-{ return false; }
inline bool check_some_routine_access(THD *thd, const char *db,
const char *name, bool is_proc)
{ return false; }