diff options
| author | Alexander Barkov <bar@mariadb.org> | 2017-07-31 23:00:02 +0400 |
|---|---|---|
| committer | Alexander Barkov <bar@mariadb.org> | 2017-07-31 23:00:02 +0400 |
| commit | c9218ff43989bf2385d1f62b45ed1f6229cbc5a5 (patch) | |
| tree | a99c10f5e304662f3b51141871f94ee64eebaee6 /sql/sql_parse.h | |
| parent | 4937474f862010c90f76bf879a70c1edf17e7c85 (diff) | |
| download | mariadb-git-c9218ff43989bf2385d1f62b45ed1f6229cbc5a5.tar.gz | |
MDEV-13415 Wrap the code in sp.cc into a class Sp_handler
Diffstat (limited to 'sql/sql_parse.h')
| -rw-r--r-- | sql/sql_parse.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sql/sql_parse.h b/sql/sql_parse.h index bf241d04e7b..c97d824ffa1 100644 --- a/sql/sql_parse.h +++ b/sql/sql_parse.h @@ -152,9 +152,10 @@ bool check_single_table_access(THD *thd, ulong privilege, TABLE_LIST *tables, bool no_errors); bool check_routine_access(THD *thd,ulong want_access,const char *db, const char *name, - bool is_proc, bool no_errors); + const Sp_handler *sph, bool no_errors); bool check_some_access(THD *thd, ulong want_access, TABLE_LIST *table); -bool check_some_routine_access(THD *thd, const char *db, const char *name, bool is_proc); +bool check_some_routine_access(THD *thd, const char *db, const char *name, + const Sp_handler *sph); bool check_table_access(THD *thd, ulong requirements,TABLE_LIST *tables, bool any_combination_of_privileges_will_do, uint number, @@ -166,7 +167,8 @@ inline bool check_single_table_access(THD *thd, ulong privilege, TABLE_LIST *tables, bool no_errors) { return false; } inline bool check_routine_access(THD *thd,ulong want_access, const char *db, - const char *name, bool is_proc, bool no_errors) + const char *name, + const Sp_handler *sph, bool no_errors) { return false; } inline bool check_some_access(THD *thd, ulong want_access, TABLE_LIST *table) { @@ -174,7 +176,8 @@ inline bool check_some_access(THD *thd, ulong want_access, TABLE_LIST *table) return false; } inline bool check_some_routine_access(THD *thd, const char *db, - const char *name, bool is_proc) + const char *name, + const Sp_handler *sph) { return false; } inline bool check_table_access(THD *thd, ulong requirements,TABLE_LIST *tables, |
