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:
committed by
Sergei Golubchik
parent
dcf76e6514
commit
d40d356606
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user