Skip site navigation (1) Skip section navigation (2)

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

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 thed
Date: 2012-09-04 02:52:47
Message-ID: E1T8jFv-000582-E1@gemulon.postgresql.org (view raw or flat)
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(-)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group