On 03.12.26 13:51, Dave Sharpe wrote:
Regarding 0005 (ecpg dt2time): agreed, it doesn't change behaviour.
But seeing an explicit double to int64 cast, that truncates,
which can lose a microsecond. The backend does the same thing in
DecodeDateTime() (at the dt2time() call), so it is easy to
show from SQL. For example, 0.7 of a day is exactly 16:48:00, but:
SELECT 'J2451187.7'::timestamp;
1999-01-08 16:47:59.999999
SELECT 'J2451187'::timestamp + '0.7 day'::interval;
1999-01-08 16:48:00
SELECT '0.7 day'::interval;
16:48:00
Is that worth exploring (on a separate thread)?
Yes, seems to me that this could be improved.