fix print type scale bug
This commit is contained in:
@ -103,7 +103,11 @@ static int ob_expr_convert_to_dt_or_time(
|
||||
int ret = OB_SUCCESS;
|
||||
if (with_date) {
|
||||
ObTime ot1;
|
||||
if (OB_FAIL(ob_obj_to_ob_time_with_date(obj, get_timezone_info(expr_ctx.my_session_), ot1, is_dayofmonth))) {
|
||||
if (OB_ISNULL(expr_ctx.my_session_) || OB_ISNULL(expr_ctx.exec_ctx_)) {
|
||||
ret = OB_NOT_INIT;
|
||||
LOG_WARN("session or exec ctx is null", K(ret), K(expr_ctx.my_session_));
|
||||
} else if (OB_FAIL(ob_obj_to_ob_time_with_date(obj, get_timezone_info(expr_ctx.my_session_), ot1,
|
||||
get_cur_time(expr_ctx.exec_ctx_->get_physical_plan_ctx()), is_dayofmonth))) {
|
||||
LOG_WARN("convert to obtime failed", K(ret));
|
||||
} else {
|
||||
ot = ot1;
|
||||
|
||||
Reference in New Issue
Block a user