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_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/5df20a6e4f5eee5eef1b28760ceca604f57d535b
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(-)
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
✖
By continuing to browse this website, you agree to the use of cookies. Go to Privacy Policy.