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.
REL8_1_STABLE
Bruce Momjian 20 years ago
parent f8d0a82bf9
commit e20261128d
  1. 426
      src/backend/utils/adt/formatting.c

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save