fix information schema case sensitive bug

This commit is contained in:
SevenJ-swj
2023-11-10 04:09:27 +00:00
committed by ob-robot
parent 751a0c5876
commit d373d22c17
2 changed files with 3 additions and 6 deletions

View File

@ -1049,7 +1049,8 @@ int ObSQLUtils::check_and_convert_db_name(const ObCollationType cs_type, const b
}
ObString last_name(name_len, name_str);
if (!preserve_lettercase) {
if (!preserve_lettercase
|| (lib::is_mysql_mode() && 0 == name.case_compare(OB_INFORMATION_SCHEMA_NAME))) {
ObCharset::casedn(CS_TYPE_UTF8MB4_BIN, last_name);
}
if (OB_ERR_WRONG_IDENT_NAME == (ret = check_ident_name(cs_type, last_name, check_for_path_chars,