pgsql: Fix to_date() and to_timestamp() to handle year masks of length

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix to_date() and to_timestamp() to handle year masks of length
Date: 2011-09-07 13:48:31
Message-ID: E1R1IUR-0001kf-Uh@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix to_date() and to_timestamp() to handle year masks of length < 4 so
they wrap toward year 2020, rather than the inconsistent behavior we had
before.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/029dfdf1157b6d837a7b7211cd35b00c6bcd767c

Modified Files
--------------
doc/src/sgml/func.sgml | 9 +++++
src/backend/utils/adt/formatting.c | 58 ++++++++++++++++++++----------------
2 files changed, 41 insertions(+), 26 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2011-09-07 16:41:52 pgsql: Fix bug introduced by pgrminclude where the tablespace version n
Previous Message Bruce Momjian 2011-09-07 13:24:40 pgsql: Revert documentation patch about NEW/OLD and triggers.