change show db to show databases
This commit is contained in:
parent
a89259abf1
commit
634f8e7b0f
@ -41,7 +41,7 @@ ObInfoSchemaUserPrivilegesTable::StaticInit::StaticInit()
|
||||
ObInfoSchemaUserPrivilegesTable::priv_type_strs[OB_PRIV_INDEX_SHIFT] = "INDEX";
|
||||
ObInfoSchemaUserPrivilegesTable::priv_type_strs[OB_PRIV_CREATE_VIEW_SHIFT] = "CREATE VIEW";
|
||||
ObInfoSchemaUserPrivilegesTable::priv_type_strs[OB_PRIV_SHOW_VIEW_SHIFT] = "SHOW VIEW";
|
||||
ObInfoSchemaUserPrivilegesTable::priv_type_strs[OB_PRIV_SHOW_DB_SHIFT] = "SHOW DB";
|
||||
ObInfoSchemaUserPrivilegesTable::priv_type_strs[OB_PRIV_SHOW_DB_SHIFT] = "SHOW DATABASES";
|
||||
ObInfoSchemaUserPrivilegesTable::priv_type_strs[OB_PRIV_SUPER_SHIFT] = "SUPER";
|
||||
ObInfoSchemaUserPrivilegesTable::priv_type_strs[OB_PRIV_PROCESS_SHIFT] = "PROCESS";
|
||||
ObInfoSchemaUserPrivilegesTable::priv_type_strs[OB_PRIV_CREATE_SYNONYM_SHIFT] = "CREATE SYNONYM";
|
||||
|
@ -482,7 +482,7 @@ int ObShowGrants::print_privs_to_buff(
|
||||
ret = BUF_PRINTF(" SHOW VIEW,");
|
||||
}
|
||||
if ((priv_set & OB_PRIV_SHOW_DB) && OB_SUCCESS == ret) {
|
||||
ret = BUF_PRINTF(" SHOW DB,");
|
||||
ret = BUF_PRINTF(" SHOW DATABASES,");
|
||||
}
|
||||
if ((priv_set & OB_PRIV_SUPER) && OB_SUCCESS == ret) {
|
||||
ret = BUF_PRINTF(" SUPER,");
|
||||
|
File diff suppressed because one or more lines are too long
@ -27406,7 +27406,7 @@ def_table_schema(
|
||||
WHEN V1.C1 = 12
|
||||
AND U.PRIV_SHOW_VIEW = 1 THEN 'SHOW VIEW'
|
||||
WHEN V1.C1 = 13
|
||||
AND U.PRIV_SHOW_DB = 1 THEN 'SHOW DB'
|
||||
AND U.PRIV_SHOW_DB = 1 THEN 'SHOW DATABASES'
|
||||
WHEN V1.C1 = 14
|
||||
AND U.PRIV_SUPER = 1 THEN 'SUPER'
|
||||
WHEN V1.C1 = 15
|
||||
|
@ -49,7 +49,7 @@ const char *ObPrivMgr::priv_names_[] = {
|
||||
"INDEX",
|
||||
"CREATE VIEW",
|
||||
"SHOW VIEW",
|
||||
"SHOW DB",
|
||||
"SHOW DATABASES",
|
||||
"SUPER",
|
||||
"PROCESS",
|
||||
"BOOTSTRAP",
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user