From: Bruce Momjian <bruce@momjian.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: to_char(float4/8): zero pad to specified length
Date: Sun, 22 Mar 2015 01:43:54 +0000
Message-ID: <E1YZUvi-0001k8-Id@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/cc0d90b73b2e6dd2f301d46818a7265742c41a14
Modified Files
--------------
src/backend/utils/adt/formatting.c | 114 ++++++++++++++++++++++-----------
src/test/regress/expected/numeric.out | 70 ++++++++++++++++++++
src/test/regress/expected/window.out | 2 +-
src/test/regress/sql/numeric.sql | 17 +++++
4 files changed, 163 insertions(+), 40 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: bruce@momjian.us
Subject: Re: pgsql: to_char(float4/8): zero pad to specified length
In-Reply-To: <E1YZUvi-0001k8-Id@gemulon.postgresql.org>
References: <E1YZUvi-0001k8-Id@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox