mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
04de6ccc31
parser: error out on empty role names
14 lines
321 B
Text
14 lines
321 B
Text
grant '' to foo@localhost;
|
|
ERROR OP000: Invalid role specification ``.
|
|
create user ''@localhost;
|
|
create role r1;
|
|
grant r1 to ''@localhost;
|
|
select current_user;
|
|
current_user
|
|
@localhost
|
|
show grants;
|
|
Grants for @localhost
|
|
GRANT r1 TO ''@'localhost'
|
|
GRANT USAGE ON *.* TO ''@'localhost'
|
|
drop role r1;
|
|
drop user ''@localhost;
|