> In both datetime_trunc() and timespan_trunc() in dt.c,

Bruce Momjian <bruce@momjian.us>

Commit: 2cf2a4fe2be67b3be0d39d3713fadc906fb95877
Author: Bruce Momjian <bruce@momjian.us>
Date: 1999-07-08T03:22:46Z
Releases: 7.1.1
> In both datetime_trunc() and timespan_trunc() in dt.c,
> the DTK_MICROSEC case is just like the DTK_MILLISEC case.
> I think this is wrong and it ought to look like
>         fsec = rint(fsec * 1000000) / 1000000;
> no?

Tom Lane.

Files

PathChange+/−
doc/TODO modified +2 −1
src/backend/utils/adt/dt.c modified +3 −3