]> granicus.if.org Git - postgresql/commit
Fix to_char for 1 BC. Previously it returned 1 AD.
authorBruce Momjian <bruce@momjian.us>
Tue, 30 Mar 2004 15:53:18 +0000 (15:53 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 30 Mar 2004 15:53:18 +0000 (15:53 +0000)
commitfd071bd478f489c81208029265e1fef954a9b5fa
treea93be11ef80a963d363e7e158bb28078ad5414e5
parentf2c064afcbfad4999d7e9ccb644a8aa99463a1ac
Fix to_char for 1 BC.  Previously it returned 1 AD.

Fix to_char(year) for BC dates.  Previously it returned one less than
the current year.

Add documentation mentioning that there is no 0 AD.
doc/src/sgml/func.sgml
src/backend/utils/adt/datetime.c
src/backend/utils/adt/formatting.c
src/backend/utils/adt/timestamp.c