]> granicus.if.org Git - postgresql/commit
Fix date_trunct for December dates that are in the next year, e.g.:
authorBruce Momjian <bruce@momjian.us>
Mon, 4 Jul 2005 14:38:31 +0000 (14:38 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 4 Jul 2005 14:38:31 +0000 (14:38 +0000)
commitb9fe8ee225f9fe649dff488e4cdbb3a65003155e
tree70c712fbced6a4dd646c15e858c37e6215851813
parente652d2c4767518bc264f274f781d5b53aa83f85c
Fix date_trunct for December dates that are in the next year, e.g.:

        SELECT date_trunc('week', '2002-12-31'::date);

Backpatch to 8.0.X.

Per report from Nick Johnson.
src/backend/utils/adt/timestamp.c