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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/015722fb364416b29fb1bb2c10631feb67ad61cd
Modified Files
--------------
src/backend/utils/adt/formatting.c | 10 +++++++---
src/backend/utils/adt/timestamp.c | 12 ++++++++----
src/include/utils/timestamp.h | 2 +-
3 files changed, 16 insertions(+), 8 deletions(-)
pgsql-committers by date
| Next: | From: Andrew Dunstan | Date: 2012-09-04 02:53:14 |
| Subject: pgsql: Unbreak Windows builds on 9.0 broken by4397c51816cbb918fc3aebc4 |
| Previous: | From: Andrew Dunstan | Date: 2012-09-04 02:33:34 |
| Subject: pgsql: Allow pg_upgrade "make check" to run on Windows/MSys. |