Обсуждение: pgsql-server/src backend/utils/adt/datetime.c ...

Поиск
Список
Период
Сортировка

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

От
tgl@svr1.postgresql.org (Tom Lane)
Дата:
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.