提交 299bf369 编写于 作者: O obdev 提交者: ob-robot

[CP] Fix win magic bug [3.1_opensource < 3_2_3]

上级 45020a1e
......@@ -207,8 +207,9 @@ int ObTransformWinMagic::check_subquery_validity(
} else if (OB_ISNULL(outer_param) || OB_ISNULL(inner_param)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("equal param have null", K(ret), K(outer_param), K(inner_param));
} else if (map_info.cond_map_.at(i) != OB_INVALID_ID) {
// existed in the main query
} else if (map_info.cond_map_.at(i) != OB_INVALID_ID &&
cond->get_expr_levels().has_member(subquery->get_current_level())) {
// existed in the main query and is correlated with current level
} else if (!inner_param->same_as(*outer_param, &context)) {
// self mapped condition (i.e. t1.c1 = t1'.c1)
is_valid = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册