[CP] fix simplify set cause 4016 bug

This commit is contained in:
ChangerR
2023-10-16 11:39:52 +00:00
committed by ob-robot
parent ceaef5c7da
commit 1640e582e0

View File

@ -74,8 +74,14 @@ int ObTransformSimplifySet::transform_one_stmt(common::ObIArray<ObParentDMLStmt>
}
}
}
if (OB_SUCC(ret) && trans_happened && OB_FAIL(add_transform_hint(*stmt, NULL))) {
LOG_WARN("failed to add transform hint", K(ret));
if (OB_SUCC(ret)) {
if (!trans_happened) {
// do nothing
} else if (OB_FAIL(stmt->adjust_subquery_list())) {
LOG_WARN("failed to adjust subquery list", K(ret));
} else if (OB_FAIL(add_transform_hint(*stmt, NULL))) {
LOG_WARN("failed to add transform hint", K(ret));
}
}
return ret;
}