mariadb/mysql-test/suite/roles/grant_empty.result
Anel Husakovic d2dddbff4e MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE
- Used single quotes, back quotes are used with commit
fafb35ee51 in 10.3 and will be changed.

Reviewed by: serg@mariadb.org
2021-07-09 08:25:54 +02:00

16 lines
386 B
Text

grant '' to foo@localhost;
ERROR OP000: Invalid role specification ``
create user ''@localhost;
create role r1;
grant r1 to ''@localhost;
connect con1,localhost,nonexisting_user,,;
select current_user;
current_user
@localhost
show grants;
Grants for @localhost
GRANT `r1` TO ``@`localhost`
GRANT USAGE ON *.* TO ``@`localhost`
connection default;
drop role r1;
drop user ''@localhost;