pgsql-server/src backend/utils/adt/datetime.c ...

Started by Tom Laneover 23 years ago1 messagescommitters
Jump to latest
#1Tom Lane
tgl@svr1.postgresql.org

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl@svr1.postgresql.org 03/06/25 18:14:15

Modified files:
src/backend/utils/adt: datetime.c
src/test/regress/expected: interval.out

Log message:
In ISO datestyle, never emit just HH:MM, always emit HH:MM:SS or
HH:MM:SS.SSS... when there is a nonzero part-of-a-day field in an
interval value. The seconds part used to be suppressed if zero,
but there's no equivalent behavior for timestamp, and since we're
modeling this format on timestamp it's probably wrong. Per complaint
and patch from Larry Rosenman.