diff options
author | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2013-10-18 06:49:53 -0700 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-10-18 06:49:53 -0700 |
commit | 1ac0b920d572ec393a2b482b6fa0686a6708abdd (patch) | |
tree | 4b62d53027d9a759cd4dc2e5a844afb0f6a739d2 /sql/sql_acl.h | |
parent | 95ef78e432e66f9b851a81a6878b11f9cc55532f (diff) | |
download | mariadb-git-1ac0b920d572ec393a2b482b6fa0686a6708abdd.tar.gz |
Added GRANT ROLE TO ROLE | USER functionality.
The command only currenty affects in memory data structures. Writing to
the roles_mapping table needs to be implemented.
Diffstat (limited to 'sql/sql_acl.h')
-rw-r--r-- | sql/sql_acl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_acl.h b/sql/sql_acl.h index 1340d6fc2e7..8a2054cee90 100644 --- a/sql/sql_acl.h +++ b/sql/sql_acl.h @@ -203,6 +203,8 @@ int check_change_password(THD *thd, const char *host, const char *user, char *password, uint password_len); bool change_password(THD *thd, const char *host, const char *user, char *password); + +bool mysql_grant_role(THD *thd, List<LEX_USER> &user_list); bool mysql_grant(THD *thd, const char *db, List <LEX_USER> &user_list, ulong rights, bool revoke, bool is_proxy); int mysql_table_grant(THD *thd, TABLE_LIST *table, List <LEX_USER> &user_list, |