fix some spell problem

This commit is contained in:
chenhuiming
2022-05-08 08:00:00 +08:00
parent 04020d65af
commit 14d648d6cf
4 changed files with 4 additions and 4 deletions

View File

@ -120,7 +120,7 @@ int ObCreateUserResolver::resolve(const ParseNode &parse_tree)
if (lib::is_oracle_mode() && 0 != host_name.compare(OB_DEFAULT_HOST_NAME)) { if (lib::is_oracle_mode() && 0 != host_name.compare(OB_DEFAULT_HOST_NAME)) {
ret = OB_NOT_SUPPORTED; ret = OB_NOT_SUPPORTED;
LOG_USER_ERROR(OB_NOT_SUPPORTED, "create user with hostname"); LOG_USER_ERROR(OB_NOT_SUPPORTED, "create user with hostname");
LOG_WARN("create user shoud not use hostname in oracle mode", K(ret)); LOG_WARN("create user should not use hostname in oracle mode", K(ret));
} }
ObString password; ObString password;
ObString need_enc_str = ObString::make_string("NO"); ObString need_enc_str = ObString::make_string("NO");

View File

@ -103,7 +103,7 @@ int ObDCLResolver::check_password_strength(common::ObString &password, common::O
} }
} else { } else {
ret = OB_ERR_UNEXPECTED; ret = OB_ERR_UNEXPECTED;
LOG_WARN("the value of password policy is unexpectd", K(ret)); LOG_WARN("the value of password policy is unexpected", K(ret));
} }
return ret; return ret;
} }

View File

@ -95,7 +95,7 @@ int ObDropUserResolver::resolve(const ParseNode &parse_tree)
SQL_RESV_LOG(WARN, "user_list_node is null", K(ret)); SQL_RESV_LOG(WARN, "user_list_node is null", K(ret));
} else { } else {
uint64_t tenant_id = params_.session_info_->get_effective_tenant_id(); uint64_t tenant_id = params_.session_info_->get_effective_tenant_id();
// resovle user_list_node // resolved user_list_node
for (int i = 0; i < user_list_node->num_child_ && OB_SUCCESS == ret; ++i) { for (int i = 0; i < user_list_node->num_child_ && OB_SUCCESS == ret; ++i) {
if (OB_ISNULL(user_list_node->children_[i])) { if (OB_ISNULL(user_list_node->children_[i])) {
ret = OB_ERR_PARSE_SQL; ret = OB_ERR_PARSE_SQL;

View File

@ -117,7 +117,7 @@ int ObGrantStmt::add_role(const common::ObString &role)
// Pust the first user_name and host_name into role[0] and role[1] // Pust the first user_name and host_name into role[0] and role[1]
// And the rest of user_names and host_names shall be saved in remain_roles // And the rest of user_names and host_names shall be saved in remain_roles
// The remain_roles is used to keep compatibility with previouse logic // The remain_roles is used to keep compatibility with previous logic
int ObGrantStmt::add_user(const common::ObString &user_name, int ObGrantStmt::add_user(const common::ObString &user_name,
const common::ObString &host_name) const common::ObString &host_name)
{ {