]> granicus.if.org Git - postgresql/commit
Fix to_date() and to_timestamp() to allow specification of the day of
authorBruce Momjian <bruce@momjian.us>
Tue, 4 Sep 2012 02:52:34 +0000 (22:52 -0400)
committerBruce Momjian <bruce@momjian.us>
Tue, 4 Sep 2012 02:52:44 +0000 (22:52 -0400)
commit015722fb364416b29fb1bb2c10631feb67ad61cd
treedfeaba3901788d298d2b122f3d2aa6eb18fa8071
parente442b0f0c6fd26738bafdeb5222511b586dfe4b9
Fix to_date() and to_timestamp() to allow specification of the day of
the week via ISO or Gregorian designations.  The fix is to store the
day-of-week consistently as 1-7, Sunday = 1.

Fixes bug reported by Marc Munro
src/backend/utils/adt/formatting.c
src/backend/utils/adt/timestamp.c
src/include/utils/timestamp.h