[CP] fix executor core

This commit is contained in:
SevenJ-swj
2024-04-03 11:57:13 +00:00
committed by ob-robot
parent bffb0781e4
commit 17cff60f67
13 changed files with 43 additions and 28 deletions

View File

@ -1119,7 +1119,8 @@ int ObSQLUtils::check_and_convert_db_name(const ObCollationType cs_type, const b
/* 将用户输入的dbname换成数据库内部存放的大小写 */
int ObSQLUtils::cvt_db_name_to_org(share::schema::ObSchemaGetterGuard &schema_guard,
const ObSQLSessionInfo *session,
common::ObString &name)
common::ObString &name,
ObIAllocator *allocator)
{
int ret = OB_SUCCESS;
if (lib::is_mysql_mode() && session != NULL && !session->is_inner()) {
@ -1134,6 +1135,9 @@ int ObSQLUtils::cvt_db_name_to_org(share::schema::ObSchemaGetterGuard &schema_gu
LOG_WARN("fail to get database schema", K(name), K(ret));
} else if (db_schema != NULL) {
name = db_schema->get_database_name();
if (allocator != NULL) {
OZ(ob_write_string(*allocator, name, name));
}
}
}
}