1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

improve the error message for a dropped current role

This commit is contained in:
Sergei Golubchik
2020-07-30 10:07:41 +02:00
parent 4635218cb0
commit 09ec8e2e22
3 changed files with 7 additions and 5 deletions

View File

@@ -2,4 +2,4 @@ create role r;
set role r;
drop role r;
revoke all on *.* from current_role;
ERROR 42000: There is no such grant defined for user 'r' on host ''
ERROR OP000: Invalid role specification `r`.

View File

@@ -5,5 +5,5 @@
create role r;
set role r;
drop role r;
error ER_NONEXISTING_GRANT;
error ER_INVALID_ROLE;
revoke all on *.* from current_role;