git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: dde1a35) | patch
Fix internal extract(timezone_minute) formulas
Thu, 1 Apr 2021 14:12:53 +0000 (16:12 +0200)
Thu, 1 Apr 2021 14:12:53 +0000 (16:12 +0200)
commit 91e7c903291116bd081abe7d4a058d40a2a06e16
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.
src/backend/utils/adt/date.c diff | blob | blame | history
src/backend/utils/adt/timestamp.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /