Debian Codegraph @

mysql-test/suite/roles/grant_empty.test

raw
1 #
2 # MDEV-5668 Assertion `granted_role->is_role()' fails on granting role with empty name
3 #
4 --error ER_INVALID_ROLE
5 grant '' to foo@localhost;
6
7 #
8 # MDEV-5238 Server crashes in find_role_grant_pair on SHOW GRANTS for an anonymous user
9 #
10 --source include/not_embedded.inc
11
12 create user ''@localhost;
13 create role r1;
14 grant r1 to ''@localhost;
15
16 --connect (con1,localhost,nonexisting_user,,)
17 select current_user;
18 show grants;
19
20 connection default;
21 drop role r1;
22 drop user ''@localhost;
23