]> granicus.if.org Git - postgresql/commit
to_char(float4/8): zero pad to specified length
authorBruce Momjian <bruce@momjian.us>
Sun, 22 Mar 2015 01:43:15 +0000 (21:43 -0400)
committerBruce Momjian <bruce@momjian.us>
Sun, 22 Mar 2015 01:43:36 +0000 (21:43 -0400)
commitcc0d90b73b2e6dd2f301d46818a7265742c41a14
tree04e04c794e612264be672ddc1b65e9e7eac194e8
parent1933a5bbc883fd2697c42d82ae12f2d585559b23
to_char(float4/8):  zero pad to specified length

Previously, zero padding was limited to the internal length, rather than
the specified length.  This allows it to match to_char(int/numeric), which
always padded to the specified length.

Regression tests added.

BACKWARD INCOMPATIBILITY
src/backend/utils/adt/formatting.c
src/test/regress/expected/numeric.out
src/test/regress/expected/window.out
src/test/regress/sql/numeric.sql