提交 bbdb6750 编写于 作者: O obdev 提交者: wangzelin.wzl

fix replace_const hint bug

上级 34c9d5a1
......@@ -596,6 +596,7 @@ int ObTransformConstPropagate::recursive_collect_const_info_from_table(ObDMLStmt
RIGHT_OUTER_JOIN == joined_table->joined_type_) {
// FULL_OUT_JOIN is not transformed because may eliminate all equal join conditions
ConstInfoContext tmp_ctx;
tmp_ctx.hint_allowed_trans_ = const_ctx.hint_allowed_trans_;
bool left_happened = false;
bool right_happened = false;
bool condition_happened = false;
......@@ -1745,6 +1746,7 @@ int ObTransformConstPropagate::recursive_collect_equal_pair_from_condition(ObDML
ObArray<ExprConstInfo> complex_infos;
for (int64_t i = 0; OB_SUCC(ret) && i < expr->get_param_count(); ++i) {
ConstInfoContext tmp_ctx;
tmp_ctx.hint_allowed_trans_ = const_ctx.hint_allowed_trans_;
bool child_happened = false;
bool current_happened = false;
if (OB_FAIL(SMART_CALL(recursive_collect_equal_pair_from_condition(stmt,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册