1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Added syntax detection for the GRANT role TO {user | role } command.

Also added syntax for GRANT privilege TO { role } command
This commit is contained in:
Vicențiu Ciorbaru
2013-10-18 04:29:01 -07:00
committed by Sergei Golubchik
parent dcf76e6514
commit d40d356606
5 changed files with 104 additions and 25 deletions

View File

@ -2275,7 +2275,7 @@ my_bool get_role_access(ACL_ROLE *role, ulong *access)
role->flags|= ROLE_VISITED;
(void) my_init_dynamic_array(&stack, sizeof(NODE_STATE), 20, 50, MYF(0));
push_dynamic(&stack, &state);
push_dynamic(&stack, (uchar*)&state);
while (stack.elements)
{
@ -2343,7 +2343,7 @@ my_bool get_role_access(ACL_ROLE *role, ulong *access)
neighbour->flags|= ROLE_VISITED;
state.neigh_idx= 0;
state.node_data= neighbour;
push_dynamic(&stack, &state);
push_dynamic(&stack, (uchar*)&state);
}
else
{