diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-10-18 09:15:46 -0700 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-10-18 09:15:46 -0700 |
commit | 7f0965f490163528a99ebc2f085087ea1c125ce2 (patch) | |
tree | 1e004a762a16070a42a2eae73e5b5a042b781373 /mysql-test | |
parent | 899398434202e3b79e994ac223786402f287ec59 (diff) | |
download | mariadb-git-7f0965f490163528a99ebc2f085087ea1c125ce2.tar.gz |
information_schema.enabled_roles table
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/acl_roles_show_grants.result | 10 | ||||
-rw-r--r-- | mysql-test/suite/funcs_1/r/is_tables_is.result | 46 | ||||
-rw-r--r-- | mysql-test/t/acl_roles_show_grants.test | 3 |
3 files changed, 59 insertions, 0 deletions
diff --git a/mysql-test/r/acl_roles_show_grants.result b/mysql-test/r/acl_roles_show_grants.result index cfe93392f41..a9faee58fb9 100644 --- a/mysql-test/r/acl_roles_show_grants.result +++ b/mysql-test/r/acl_roles_show_grants.result @@ -36,6 +36,10 @@ select current_user(), current_role(); current_user() current_role() test_user@localhost NULL set role test_role1; +select * from information_schema.enabled_roles; +ROLE_NAME +test_role2 +test_role1 select current_user(), current_role(); current_user() current_role() test_user@localhost test_role1 @@ -49,6 +53,9 @@ GRANT test_role1 TO 'test_user'@'localhost' GRANT test_role2 TO 'test_role1' GRANT test_role2 TO 'test_user'@'localhost' set role none; +select * from information_schema.enabled_roles; +ROLE_NAME +NULL select current_user(), current_role(); current_user() current_role() test_user@localhost NULL @@ -81,6 +88,9 @@ ERROR 42000: There is no such grant defined for user 'test_user' on host 'localh show grants for CURRENT_ROLE(); ERROR 42000: There is no such grant defined for user 'test_user' on host 'localhost' set role test_role2; +select * from information_schema.enabled_roles; +ROLE_NAME +test_role2 select current_user(), current_role(); current_user() current_role() test_user@localhost test_role2 diff --git a/mysql-test/suite/funcs_1/r/is_tables_is.result b/mysql-test/suite/funcs_1/r/is_tables_is.result index 5d3770c42de..93c1a51e9ed 100644 --- a/mysql-test/suite/funcs_1/r/is_tables_is.result +++ b/mysql-test/suite/funcs_1/r/is_tables_is.result @@ -177,6 +177,29 @@ user_comment Separator ----------------------------------------------------- TABLE_CATALOG def TABLE_SCHEMA information_schema +TABLE_NAME ENABLED_ROLES +TABLE_TYPE SYSTEM VIEW +ENGINE MEMORY +VERSION 10 +ROW_FORMAT Fixed +TABLE_ROWS #TBLR# +AVG_ROW_LENGTH #ARL# +DATA_LENGTH #DL# +MAX_DATA_LENGTH #MDL# +INDEX_LENGTH #IL# +DATA_FREE #DF# +AUTO_INCREMENT NULL +CREATE_TIME #CRT# +UPDATE_TIME #UT# +CHECK_TIME #CT# +TABLE_COLLATION utf8_general_ci +CHECKSUM NULL +CREATE_OPTIONS #CO# +TABLE_COMMENT #TC# +user_comment +Separator ----------------------------------------------------- +TABLE_CATALOG def +TABLE_SCHEMA information_schema TABLE_NAME ENGINES TABLE_TYPE SYSTEM VIEW ENGINE MEMORY @@ -1000,6 +1023,29 @@ user_comment Separator ----------------------------------------------------- TABLE_CATALOG def TABLE_SCHEMA information_schema +TABLE_NAME ENABLED_ROLES +TABLE_TYPE SYSTEM VIEW +ENGINE MEMORY +VERSION 10 +ROW_FORMAT Fixed +TABLE_ROWS #TBLR# +AVG_ROW_LENGTH #ARL# +DATA_LENGTH #DL# +MAX_DATA_LENGTH #MDL# +INDEX_LENGTH #IL# +DATA_FREE #DF# +AUTO_INCREMENT NULL +CREATE_TIME #CRT# +UPDATE_TIME #UT# +CHECK_TIME #CT# +TABLE_COLLATION utf8_general_ci +CHECKSUM NULL +CREATE_OPTIONS #CO# +TABLE_COMMENT #TC# +user_comment +Separator ----------------------------------------------------- +TABLE_CATALOG def +TABLE_SCHEMA information_schema TABLE_NAME ENGINES TABLE_TYPE SYSTEM VIEW ENGINE MEMORY diff --git a/mysql-test/t/acl_roles_show_grants.test b/mysql-test/t/acl_roles_show_grants.test index bae9865d98d..157458b5c79 100644 --- a/mysql-test/t/acl_roles_show_grants.test +++ b/mysql-test/t/acl_roles_show_grants.test @@ -30,10 +30,12 @@ change_user 'test_user'; show grants; select current_user(), current_role(); set role test_role1; +select * from information_schema.enabled_roles; select current_user(), current_role(); --sorted_result show grants; set role none; +select * from information_schema.enabled_roles; select current_user(), current_role(); --sorted_result show grants; @@ -54,6 +56,7 @@ show grants for CURRENT_ROLE; show grants for CURRENT_ROLE(); set role test_role2; +select * from information_schema.enabled_roles; select current_user(), current_role(); --sorted_result show grants; |