]> granicus.if.org Git - postgresql/commit
Fix handling of CC (century) format spec in to_date/to_char. According to
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 12 Jan 2007 23:34:55 +0000 (23:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 12 Jan 2007 23:34:55 +0000 (23:34 +0000)
commit9a54b76b39b89de2f0238a9e4d570972cf758fd8
treeab5b2fa640ad316d8064caad9b497f68e5063846
parent113fbe1264a8b6d757afc54c6df29de80720c7bd
Fix handling of CC (century) format spec in to_date/to_char.  According to
standard convention the 21st century runs from 2001-2100, not 2000-2099,
so make it work like that.  Per bug #2885 from Akio Iwaasa.

Backpatch to 8.2, but no further, since this is really a definitional
change; users of older branches are probably more interested in stability.
doc/src/sgml/func.sgml
src/backend/utils/adt/formatting.c
src/test/regress/expected/timestamp.out
src/test/regress/expected/timestamptz.out