fix bug about expr second microsecond hour month year

This commit is contained in:
obdev
2023-06-13 08:53:56 +00:00
committed by ob-robot
parent 1d7696516a
commit 68af9e5cf9
2 changed files with 14 additions and 2 deletions

View File

@ -308,7 +308,7 @@ ObExprYear::~ObExprYear() {}
int ObExprYear::calc_year(const ObExpr &expr, ObEvalCtx &ctx, ObDatum &expr_datum)
{
return ObExprTimeBase::calc(expr, ctx, expr_datum, DT_YEAR, true);
return ObExprTimeBase::calc(expr, ctx, expr_datum, DT_YEAR, true, true);
}
ObExprMonth::ObExprMonth(ObIAllocator &alloc)