diff --git a/src/sql/resolver/dml/ob_merge_resolver.cpp b/src/sql/resolver/dml/ob_merge_resolver.cpp index de99e81c40..5c74126a12 100644 --- a/src/sql/resolver/dml/ob_merge_resolver.cpp +++ b/src/sql/resolver/dml/ob_merge_resolver.cpp @@ -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; }