1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Added GRANT ROLE TO ... and REVOKE ROLE FROM ... functionality.

TODO:

Privilege checks are not done upon executing the command.
This commit is contained in:
Vicențiu Ciorbaru
2013-10-18 09:25:42 -07:00
committed by Sergei Golubchik
parent df48f63684
commit 60f19cbc9a
7 changed files with 196 additions and 27 deletions

View File

@@ -31,8 +31,8 @@ select * from information_schema.applicable_roles;
GRANTEE ROLE_NAME IS_GRANTABLE
select * from information_schema.applicable_roles;
GRANTEE ROLE_NAME IS_GRANTABLE
test_user@localhost test_role1 YES
test_role1 test_role2 YES
test_user@localhost test_role1 YES
test_user@localhost test_role2 YES
show grants;
Grants for test_user@localhost
@@ -45,8 +45,8 @@ test_user@localhost NULL
set role test_role1;
select * from information_schema.enabled_roles;
ROLE_NAME
test_role2
test_role1
test_role2
select current_user(), current_role();
current_user() current_role()
test_user@localhost test_role1