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

MDEV-5525 Assertion `status == 0' fails on creating user after granting it role admin option

don't add entries to acl_roles_mappings hash for non-existing grantees.
This commit is contained in:
Sergei Golubchik
2014-01-29 11:00:06 +01:00
parent 416148a4cf
commit dba4e82a84
3 changed files with 67 additions and 21 deletions

View File

@ -40,3 +40,9 @@ create role r1;
drop user r1;
ERROR HY000: Operation DROP USER failed for 'r1'@'%'
drop role r1;
create role r1 with admin u1;
Warnings:
Note 1449 The user specified as a definer ('u1'@'%') does not exist
create user foo@bar;
drop user foo@bar;
drop role r1;

View File

@ -60,3 +60,11 @@ create role r1;
drop user r1;
drop role r1;
#
# MDEV-5525 Assertion `status == 0' fails on creating user after granting it role admin option
#
create role r1 with admin u1;
create user foo@bar;
drop user foo@bar;
drop role r1;