pgsql: Fix to_date() and to_timestamp() to allow specification of the d - Mailing list pgsql-committers

From Bruce Momjian
Subject pgsql: Fix to_date() and to_timestamp() to allow specification of the d
Date
Msg-id E1T8jFv-000582-E1@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: Allow pg_upgrade "make check" to run on Windows/MSys.
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Unbreak Windows builds on 9.0 broken by 4397c51816cbb918fc3aebc4