pgsql: Fix corner case bug in numeric to_char().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix corner case bug in numeric to_char().
Дата
Msg-id E1R1PLb-0008Hl-2R@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix corner case bug in numeric to_char().

Trailing-zero stripping applied by the FM specifier could strip zeroes
to the left of the decimal point, for a format with no digit positions
after the decimal point (such as "FM999.").

Reported and diagnosed by Marti Raudsepp, though I didn't use his patch.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6e7a3c364bf5df266bb7000ead399e779410962c

Modified Files
--------------
src/backend/utils/adt/formatting.c    |   27 ++++++++++++++++++++-------
src/test/regress/expected/numeric.out |   18 ++++++++++++++++++
src/test/regress/sql/numeric.sql      |    4 ++++
3 files changed, 42 insertions(+), 7 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix corner case bug in numeric to_char().
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: One last round of copy-editing for the 9.1 release notes.