[CP] [to #55674640] fix MERGE INTO + table function returns -4007

This commit is contained in:
0xacc
2024-04-01 06:50:41 +00:00
committed by ob-robot
parent 5cbe812463
commit e960884939

View File

@ -352,6 +352,9 @@ int ObMergeResolver::resolve_table(const ParseNode &parse_tree, TableItem *&tabl
ret = OB_INVALID_ARGUMENT;
LOG_WARN("invalid argument", K(ret));
}
ObStmtScope scope_backup = current_scope_;
current_scope_ = T_FROM_SCOPE;
DEFER(current_scope_ = scope_backup);
OZ (resolve_function_table_item(*table_node, table_item));
break;
}