pgsql: to_char(): Do not count negative sign as a digit for time values

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема pgsql: to_char(): Do not count negative sign as a digit for time values
Дата
Msg-id E1ZjGTy-0005M4-So@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2d87eedc1d4468d331035bbe55f140f180d20144

Modified Files
--------------
src/backend/utils/adt/formatting.c        |   28 ++++++++++++++++++----------
src/test/regress/expected/timestamp.out   |    6 +++---
src/test/regress/expected/timestamptz.out |    6 +++---
3 files changed, 24 insertions(+), 16 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Stamp 9.0.23.
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: psql: allow \pset C in setting the title, matches \C