diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-01-28 21:11:56 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-01-28 21:11:56 +0100 |
commit | 5a385146ae39f71fa5139429992eb64a7d9ec9ed (patch) | |
tree | 9661ee21c725c38e7f7dfed920907b9c3b9b36b4 /mysql-test/suite/roles/create_and_drop_role.test | |
parent | 92eafe1ab1777b40c90ff73b91a9656da947b740 (diff) | |
download | mariadb-git-5a385146ae39f71fa5139429992eb64a7d9ec9ed.tar.gz |
MDEV-5523 Server crashes on DROP USER <rolename>
use 'user_name' for the error message (fixed, after get_current_user()),
not the original tmp_user_name, as it comes from the parser (host == NULL).
Diffstat (limited to 'mysql-test/suite/roles/create_and_drop_role.test')
-rw-r--r-- | mysql-test/suite/roles/create_and_drop_role.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/suite/roles/create_and_drop_role.test b/mysql-test/suite/roles/create_and_drop_role.test index 6a329e5de96..b130c530b08 100644 --- a/mysql-test/suite/roles/create_and_drop_role.test +++ b/mysql-test/suite/roles/create_and_drop_role.test @@ -52,3 +52,11 @@ connection default; --error ER_INVALID_ROLE create role ''; +# +# MDEV-5523 Server crashes on DROP USER <rolename> +# +create role r1; +--error ER_CANNOT_USER +drop user r1; +drop role r1; + |