summaryrefslogtreecommitdiff
path: root/sql/sql_acl.h
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <cvicentiu@gmail.com>2013-10-18 06:40:25 -0700
committerSergei Golubchik <sergii@pisem.net>2013-10-18 06:40:25 -0700
commit4a58599930f5b8b3f000af92800fbe91052ed761 (patch)
treedb11ad32c84d5e315c662262d467985ddc4d1ebb /sql/sql_acl.h
parentd24ead2c6fa9ce89178dfbf464e6dfbcb579e197 (diff)
downloadmariadb-git-4a58599930f5b8b3f000af92800fbe91052ed761.tar.gz
Implemented SHOW GRANTS functionality
Diffstat (limited to 'sql/sql_acl.h')
-rw-r--r--sql/sql_acl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_acl.h b/sql/sql_acl.h
index 4a7e83f12df..1340d6fc2e7 100644
--- a/sql/sql_acl.h
+++ b/sql/sql_acl.h
@@ -175,6 +175,9 @@ extern bool mysql_user_table_is_in_short_password_format;
extern const char *HOST_NOT_SPECIFIED;
extern const char *NONE_ROLE;
+extern LEX_USER current_user;
+extern LEX_USER current_role;
+extern LEX_USER current_user_and_current_role;
static inline int access_denied_error_code(int passwd_used)
@@ -227,7 +230,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 print_current_role);
+bool mysql_show_grants(THD *thd, LEX_USER *user);
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);