OSDN Git Service

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)
commite20261128daf9a7afd2fc654d37fe70a692d5cf9
treeca21ed9a9e5fc09a3e56b538b5f3e9d0979c3b3d
parentf8d0a82bf9501e1c5efe40e0f55d0c063858f7b4
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