to_char(float4/8): zero pad to specified length
Bruce Momjian <bruce@momjian.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/formatting.c | modified | +75 −39 |
| src/test/regress/expected/numeric.out | modified | +70 −0 |
| src/test/regress/expected/window.out | modified | +1 −1 |
| src/test/regress/sql/numeric.sql | modified | +17 −0 |