summaryrefslogtreecommitdiff
path: root/mysql-test/suite/roles
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-03-01 11:55:31 +0100
committerSergei Golubchik <sergii@pisem.net>2014-03-01 11:55:31 +0100
commit04de6ccc318ea52124399312223b8c0dc0d8fc7b (patch)
treefb2323f31cbfe419918045587d428a7731b60cf6 /mysql-test/suite/roles
parent8dce8ecfda303e15daf2832d90de024a6acf8e7e (diff)
downloadmariadb-git-04de6ccc318ea52124399312223b8c0dc0d8fc7b.tar.gz
MDEV-5668 Assertion `granted_role->is_role()' fails on granting role with empty name
parser: error out on empty role names
Diffstat (limited to 'mysql-test/suite/roles')
-rw-r--r--mysql-test/suite/roles/grant_empty.result (renamed from mysql-test/suite/roles/show_grants_anon-5238.result)2
-rw-r--r--mysql-test/suite/roles/grant_empty.test (renamed from mysql-test/suite/roles/show_grants_anon-5238.test)6
2 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/suite/roles/show_grants_anon-5238.result b/mysql-test/suite/roles/grant_empty.result
index 85be1ac92f3..dfc0f513396 100644
--- a/mysql-test/suite/roles/show_grants_anon-5238.result
+++ b/mysql-test/suite/roles/grant_empty.result
@@ -1,3 +1,5 @@
+grant '' to foo@localhost;
+ERROR OP000: Invalid role specification ``.
create user ''@localhost;
create role r1;
grant r1 to ''@localhost;
diff --git a/mysql-test/suite/roles/show_grants_anon-5238.test b/mysql-test/suite/roles/grant_empty.test
index adb22490233..e419fffa2ba 100644
--- a/mysql-test/suite/roles/show_grants_anon-5238.test
+++ b/mysql-test/suite/roles/grant_empty.test
@@ -1,4 +1,10 @@
#
+# MDEV-5668 Assertion `granted_role->is_role()' fails on granting role with empty name
+#
+--error ER_INVALID_ROLE
+grant '' to foo@localhost;
+
+#
# MDEV-5238 Server crashes in find_role_grant_pair on SHOW GRANTS for an anonymous user
#
--source include/not_embedded.inc