to issue<51710744>:fix datetime type as argument of store routine issue

This commit is contained in:
hanr881 2023-09-01 10:44:33 +00:00 committed by ob-robot
parent 4e93734f83
commit 5e3a117ca7

View File

@ -2605,8 +2605,14 @@ int ObRawExprResolverImpl::process_datatype_or_questionmark(const ParseNode &nod
}
#endif
} else {
c_expr->set_meta_type(ObSQLUtils::is_oracle_empty_string(param)
if (ObNullType == param.get_type() &&
T_QUESTIONMARK == c_expr->get_expr_type() &&
ObDateTimeType == param.get_null_meta().get_type()) {
c_expr->set_meta_type(param.get_null_meta());
} else {
c_expr->set_meta_type(ObSQLUtils::is_oracle_empty_string(param)
? param.get_param_meta() : param.get_meta());
}
c_expr->set_expr_obj_meta(param.get_param_meta());
c_expr->set_accuracy(param.get_accuracy());
c_expr->set_result_flag(param.get_result_flag()); // not_null etc