]> granicus.if.org Git - postgresql/commit
Fix to_date's handling of year 519.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Jul 2012 15:35:24 +0000 (11:35 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Jul 2012 15:35:24 +0000 (11:35 -0400)
commit8400d313290d293c02eb1bc4eb4422de3077aa34
tree5cf36f4530f479835dbfc58b60545d81f1c5060c
parent972e066638dff29cf9288fed8f983a43ec942e77
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.
src/backend/utils/adt/formatting.c