pgsql: Fix to_date's handling of year 519.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix to_date's handling of year 519.
Date: 2012-07-02 15:35:46
Message-ID: E1SlifC-0007KZ-UP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix to_date's handling of year 519.

A thinko in commit 029dfdf1157b6d837a7b7211cd35b00c6bcd767c caused the year
519 to be handled differently from either adjacent year, which was not the
intention AFAICS. Report and diagnosis by Marc Cousin.

In passing, remove redundant re-tests of year value.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/8400d313290d293c02eb1bc4eb4422de3077aa34

Modified Files
--------------
src/backend/utils/adt/formatting.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Fetter 2012-07-02 15:49:05 Re: [COMMITTERS] pgsql: Make walsender more responsive.
Previous Message Robert Haas 2012-07-02 15:29:25 pgsql: Work a little harder on comments for walsender wakeup patch.