public inbox for [email protected]  
help / color / mirror / Atom feed
From: liuyuanyuan <[email protected]>
To: [email protected]
Subject: Threes errors of to_char Examples
Date: Fri, 27 Feb 2015 16:10:40 +0800
Message-ID: <[email protected]> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-docs>

Hi all!

I found three errors in postgresql9.4.1document, they are about to_char
examples.

Maybe other version of document also have those errors. Please Check and
modify~

 

In Chapter 9. Functions and Operators of
<http://www.postgresql.org/docs/9.4/interactive/index.html; PostgreSQL 9.4.1
Documentation, I found this:


expression

result


to_char(148.5, '999D999')

' 148,500'


to_char(3148.5, '9G999D999')

' 3 148,500'


to_char(485, 'PL999')

'+485'

 

But, in fact their result are as follow:

 

postgres=# select to_char(148.5,'999D999');

to_char

----------

  148.500

(1 行记录)

 

postgres=# select to_char(3148.5,'9G999D999');

  to_char

------------

  3,148.500

(1 行记录)

 



 

 

Yuanyuan Liu

Blog: http://my.oschina.net/liuyuanyuangogo



Attachments:

  [image/png] image001.png (2.9K, 3-image001.png)
  download | view image

view thread (3+ messages)  latest in thread

reply

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: Threes errors of to_char Examples
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox