[CP] fix bug about timestampdiff and timestampadd

This commit is contained in:
obdev
2023-04-13 08:33:02 +00:00
committed by ob-robot
parent 1723a953cc
commit 0442dd622b
3 changed files with 11 additions and 14 deletions

View File

@ -58,8 +58,8 @@ inline int ObExprTimeStampDiff::calc_result_type3(ObExprResType &type,
type.set_scale(common::DEFAULT_SCALE_FOR_INTEGER);
type.set_precision(common::ObAccuracy::DDL_DEFAULT_ACCURACY[common::ObIntType].precision_);
//set calc type
left.set_calc_type(common::ObTimestampType);
right.set_calc_type(common::ObTimestampType);
left.set_calc_type(common::ObDateTimeType);
right.set_calc_type(common::ObDateTimeType);
return common::OB_SUCCESS;
}
} //sql