mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
WL#5030: Splitting mysql_priv.h
Adding my_global.h first in all files using NO_EMBEDDED_ACCESS_CHECKS. Correcting a merge problem resulting from a changed definition of check_some_access compared to the original patches.
This commit is contained in:
@ -16,6 +16,7 @@
|
||||
#ifndef SQL_PARSE_INCLUDED
|
||||
#define SQL_PARSE_INCLUDED
|
||||
|
||||
#include "my_global.h" /* NO_EMBEDDED_ACCESS_CHECKS */
|
||||
#include "sql_acl.h" /* GLOBAL_ACLS */
|
||||
|
||||
class Comp_creator;
|
||||
@ -177,7 +178,10 @@ inline bool check_routine_access(THD *thd,ulong want_access,char *db,
|
||||
char *name, bool is_proc, bool no_errors)
|
||||
{ return false; }
|
||||
inline bool check_some_access(THD *thd, ulong want_access, TABLE_LIST *table)
|
||||
{ return false; }
|
||||
{
|
||||
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,
|
||||
|
Reference in New Issue
Block a user