Обсуждение: pgsql: to_char(float4/8): don't print "junk" digits

Поиск
Список
Период
Сортировка

pgsql: to_char(float4/8): don't print "junk" digits

От
Bruce Momjian
Дата:
to_char(float4/8):  don't print "junk" digits

Commit cc0d90b73b2e6dd2f301d46818a7265742c41a14 also avoids printing
junk digits, which are digits that are beyond the precision of the
underlying type.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9d61b9953c1489cbb458ca70013cf5fca1bb7710

Modified Files
--------------
src/test/regress/expected/numeric.out |    2 +-
src/test/regress/sql/numeric.sql      |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)


Re: pgsql: to_char(float4/8): don't print "junk" digits

От
Tom Lane
Дата:
Bruce Momjian <bruce@momjian.us> writes:
> to_char(float4/8):  don't print "junk" digits

I think this probably was not what you intended to commit, because
what got committed was only an entirely-pointless whitespace change.

            regards, tom lane


Re: pgsql: to_char(float4/8): don't print "junk" digits

От
Bruce Momjian
Дата:
On Sun, Mar 22, 2015 at 01:37:56AM -0400, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > to_char(float4/8):  don't print "junk" digits
>
> I think this probably was not what you intended to commit, because
> what got committed was only an entirely-pointless whitespace change.

It actually is because I just wanted to add that to the previous commit
message, as it might be important for the release notes.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +