diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-01-28 21:01:21 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-01-28 21:01:21 +0100 |
commit | 03b428d2cdf50cb97e607c55649035265f6c3c71 (patch) | |
tree | cd345e570914a18998061d0198d9c916135f9b69 /mysql-test/suite/roles/create_and_drop_role.test | |
parent | 74d29b0ed32aa78b593fb9328843698bb84f577f (diff) | |
download | mariadb-git-03b428d2cdf50cb97e607c55649035265f6c3c71.tar.gz |
MDEV-5520 Connection lost on wrong CREATE ROLE
Diffstat (limited to 'mysql-test/suite/roles/create_and_drop_role.test')
-rw-r--r-- | mysql-test/suite/roles/create_and_drop_role.test | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mysql-test/suite/roles/create_and_drop_role.test b/mysql-test/suite/roles/create_and_drop_role.test index 3491986e666..6a329e5de96 100644 --- a/mysql-test/suite/roles/create_and_drop_role.test +++ b/mysql-test/suite/roles/create_and_drop_role.test @@ -18,7 +18,6 @@ select user, host, is_role from user where user like 'test%'; drop role test_role1; drop role test_role2, test_role3; - create role test_role1; --error ER_CANNOT_USER create role test_role1; @@ -45,3 +44,11 @@ drop user dummy@''; --sorted_result select user, host, is_role from user where user like 'test%'; disconnect mysql; +connection default; + +# +# MDEV-5520 Connection lost on wrong CREATE ROLE +# +--error ER_INVALID_ROLE +create role ''; + |