summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/roles/create_and_grant_role.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/roles/create_and_grant_role.test')
-rw-r--r--mysql-test/suite/roles/create_and_grant_role.test21
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/suite/roles/create_and_grant_role.test b/mysql-test/suite/roles/create_and_grant_role.test
new file mode 100644
index 00000000..5b321503
--- /dev/null
+++ b/mysql-test/suite/roles/create_and_grant_role.test
@@ -0,0 +1,21 @@
+source include/not_embedded.inc;
+
+create role r1;
+grant r1 to root@localhost;
+create user u1;
+set role r1;
+
+grant r1 to u1;
+--sorted_result
+select * from mysql.roles_mapping;
+
+drop user u1;
+--sorted_result
+select * from mysql.roles_mapping;
+--sorted_result
+show grants;
+drop role r1;
+--sorted_result
+select * from mysql.roles_mapping;
+--sorted_result
+show grants;