On Fri, Apr 2, 2021 at 07:53:35PM -0700, Zhihong Yu wrote:
> Bruce:
> In src/interfaces/ecpg/pgtypeslib/interval.c, how about the following places ?
>
> Around line 158:
> case 'Y':
> tm->tm_year += val;
> tm->tm_mon += (fval * MONTHS_PER_YEAR);
>
> Around line 194:
> tm->tm_year += val;
> tm->tm_mon += (fval * MONTHS_PER_YEAR);
>
> Is rint() needed for these two cases ?
Ah, yes, good point. Updated patch attached.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
If only the physical world exists, free will is an illusion.