pgsql: Fix to_date() and to_timestamp() to allow specification of the d

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix to_date() and to_timestamp() to allow specification of the d
Date: 2012-09-04 02:52:47
Message-ID: E1T8jFv-000582-E1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2012-09-04 02:53:14 pgsql: Unbreak Windows builds on 9.0 broken by 4397c51816cbb918fc3aebc4
Previous Message Andrew Dunstan 2012-09-04 02:33:34 pgsql: Allow pg_upgrade "make check" to run on Windows/MSys.