Fix some prepared statement bug

This commit is contained in:
obdev
2023-05-17 14:22:00 +00:00
committed by ob-robot
parent 088e14bdc0
commit e556c2117c
4 changed files with 26 additions and 21 deletions

View File

@ -389,7 +389,12 @@ int ObRawExpr::deduce_type(const ObSQLSessionInfo *session_info)
ObRawExprDeduceType expr_deducer(session_info);
expr_deducer.set_expr_factory(expr_factory_);
if (OB_FAIL(expr_deducer.deduce(*this))) {
LOG_WARN("fail to deduce", K(ret));
if (session_info->is_ps_prepare_stage()) {
ret = OB_SUCCESS;
LOG_TRACE("ps prepare phase ignores type deduce error");
} else {
LOG_WARN("fail to deduce", K(ret));
}
}
//LOG_DEBUG("deduce_type", "usec", ObSQLUtils::get_usec());
return ret;