[scn] fix failure of mittest after refresh feature scn

This commit is contained in:
obdev
2022-11-28 01:46:42 +00:00
committed by ob-robot
parent 49a02f3304
commit 54b64a7263
1898 changed files with 255804 additions and 280809 deletions

View File

@ -62,7 +62,13 @@ int ObDropIndexResolver::resolve(const ParseNode &parse_tree)
// get table name in oracle mode
if (OB_SUCC(ret) && lib::is_oracle_mode()) {
ParseNode *db_node = NULL;
int32_t max_database_name_length = OB_MAX_DATABASE_NAME_LENGTH;
/**
* 在2.2.20版本上将命名长度比较逻辑由大于等于128字节时报错调整为大于128字节时报错后, 2.2.20以上版本
* 数据库名长度可以为128字节。 升级过程中高版本server序列化session info到低版本server时, 如果数据
* 库名长度为128字节会存在兼容性问题。 因此在升级过程中限制数据库名长度不超过127字节
*/
int32_t max_database_name_length = GET_MIN_CLUSTER_VERSION() < CLUSTER_CURRENT_VERSION ?
OB_MAX_DATABASE_NAME_LENGTH - 1 : OB_MAX_DATABASE_NAME_LENGTH;
if (1 == parse_tree.num_child_) {
index_node = parse_tree.children_[0];
} else if (2 == parse_tree.num_child_) {