summaryrefslogtreecommitdiff
path: root/sql/sql_acl.h
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <cvicentiu@gmail.com>2013-10-18 06:34:07 -0700
committerSergei Golubchik <sergii@pisem.net>2013-10-18 06:34:07 -0700
commitf2ab661999005310cb71c43e9bfa6b57ab5875de (patch)
tree1350567e4fdd45e2dcc6df3d9b0d3dfe93dc4f5c /sql/sql_acl.h
parent34366918997ccdcfeb0c8c4623318c3546a9f4b3 (diff)
downloadmariadb-git-f2ab661999005310cb71c43e9bfa6b57ab5875de.tar.gz
Added SHOW GRANTS recursive role print.
The output is not completely correct due to recursive role grants not being completly implemented. However, this will help with testing the implementation of set role with recursive grants.
Diffstat (limited to 'sql/sql_acl.h')
-rw-r--r--sql/sql_acl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_acl.h b/sql/sql_acl.h
index cace79cb441..4a7e83f12df 100644
--- a/sql/sql_acl.h
+++ b/sql/sql_acl.h
@@ -227,7 +227,7 @@ ulong get_table_grant(THD *thd, TABLE_LIST *table);
ulong get_column_grant(THD *thd, GRANT_INFO *grant,
const char *db_name, const char *table_name,
const char *field_name);
-bool mysql_show_grants(THD *thd, LEX_USER *user);
+bool mysql_show_grants(THD *thd, LEX_USER *user, bool print_current_role);
void get_privilege_desc(char *to, uint max_length, ulong access);
void get_mqh(const char *user, const char *host, USER_CONN *uc);
bool mysql_create_user(THD *thd, List <LEX_USER> &list, bool handle_as_role);