Обсуждение: pgsql: Fix internal extract(timezone_minute) formulas

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

pgsql: Fix internal extract(timezone_minute) formulas

От
Peter Eisentraut
Дата:
Fix internal extract(timezone_minute) formulas

Through various refactorings over time, the extract(timezone_minute
from time with time zone) and extract(timezone_minute from timestamp
with time zone) implementations ended up with two different but
equally nonsensical formulas by using SECS_PER_MINUTE and
MINS_PER_HOUR interchangeably.  Since those two are of course both the
same number, the formulas do work, but for readability, fix them to be
semantically correct.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/91e7c903291116bd081abe7d4a058d40a2a06e16

Modified Files
--------------
src/backend/utils/adt/date.c      | 2 +-
src/backend/utils/adt/timestamp.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)