Fix to_char(interval) to return proper year and century values.
authorBruce Momjian <bruce@momjian.us>
Thu, 18 Aug 2005 04:37:08 +0000 (04:37 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 18 Aug 2005 04:37:08 +0000 (04:37 +0000)
commitad1780e32bc83c4c9f0051ec6b209dde977cd14e
tree5ac77cb11b04a96fa2ec1f27497f5c05d9b53979
parent6664c24d0615960b8bc47c6383209967cdcb5e22
Fix to_char(interval) to return proper year and century values.
Fix to_char(interval) to return large year/month/day/hour values that
are larger than possible timestamp values.
Prevent to_char(interval) format specifications that make no sense, like
Month.
Clean up formatting.c code to more logically handle return lengths.
src/backend/utils/adt/formatting.c