fix error code overwritten bug

This commit is contained in:
obdev
2024-02-27 02:45:35 +00:00
committed by ob-robot
parent 7ebc338957
commit 6e5f7eb335

View File

@ -618,11 +618,11 @@ int ObStaticEngineExprCG::classify_exprs(const ObIArray<ObRawExpr *> &raw_exprs,
&& !raw_exprs.at(i)->has_flag(IS_TABLE_ASSIGN) && !is_dyn_qm) { && !raw_exprs.at(i)->has_flag(IS_TABLE_ASSIGN) && !is_dyn_qm) {
if (raw_exprs.at(i)->has_flag(IS_DYNAMIC_PARAM)) { if (raw_exprs.at(i)->has_flag(IS_DYNAMIC_PARAM)) {
// if questionmark is dynamic evaluated, e.g. decint->nmb, use dynamic_param_frame as its memory // if questionmark is dynamic evaluated, e.g. decint->nmb, use dynamic_param_frame as its memory
if (dynamic_param_exprs.push_back(raw_exprs.at(i))) { if (OB_FAIL(dynamic_param_exprs.push_back(raw_exprs.at(i)))) {
LOG_WARN("fail to push expr", K(ret), K(i), K(raw_exprs)); LOG_WARN("fail to push expr", K(ret), K(i), K(raw_exprs));
} }
} else { } else {
if (param_exprs.push_back(raw_exprs.at(i))) { if (OB_FAIL(param_exprs.push_back(raw_exprs.at(i)))) {
LOG_WARN("fail to push expr", K(ret), K(i), K(raw_exprs)); LOG_WARN("fail to push expr", K(ret), K(i), K(raw_exprs));
} }
} }