diff options
Diffstat (limited to 'mysql-test/t/grant5.test')
-rw-r--r-- | mysql-test/t/grant5.test | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/mysql-test/t/grant5.test b/mysql-test/t/grant5.test index 74a69952124..8756648c3e1 100644 --- a/mysql-test/t/grant5.test +++ b/mysql-test/t/grant5.test @@ -53,5 +53,19 @@ drop user u1@localhost; drop database mysqltest1; # -# End of 10.1 tests +# MDEV-22313: Neither SHOW CREATE USER nor SHOW GRANTS prints a user's default role +# +CREATE ROLE test_role; +CREATE USER test_user; +GRANT test_role TO test_user; +SET DEFAULT ROLE test_role FOR test_user; +SHOW GRANTS FOR test_user; +SET DEFAULT ROLE NONE for test_user; +SHOW GRANTS FOR test_user; +SHOW GRANTS; +DROP USER test_user; +DROP ROLE test_role; + # +# End of 10.1 tests +#
\ No newline at end of file |