aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2015-10-05 20:51:46 -0400
committerBruce Momjian <bruce@momjian.us>2015-10-05 20:51:46 -0400
commit2d87eedc1d4468d331035bbe55f140f180d20144 (patch)
tree18e4a1784b539cfe3ca02d6da4f742cc5d7a68b4 /src/backend/parser/parse_utilcmd.c
parent6d8b2aa83af70e20323caf23961667dc4c149276 (diff)
downloadpostgresql-2d87eedc1d4468d331035bbe55f140f180d20144.tar.gz
postgresql-2d87eedc1d4468d331035bbe55f140f180d20144.zip
to_char(): Do not count negative sign as a digit for time values
For time masks, like HH24, MI, SS, CC, MM, do not count the negative sign as part of the zero-padding length specified by the mask, e.g. have to_char('-4 years'::interval, 'YY') return '-04', not '-4'. Report by Craig Ringer
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions