Threes errors of to_char Examples

Поиск
Список
Период
Сортировка
От liuyuanyuan
Тема Threes errors of to_char Examples
Дата
Msg-id 01bf01d05264$e842bf00$b8c83d00$@gmail.com
обсуждение исходный текст
Ответы Re: Threes errors of to_char Examples
Список pgsql-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  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

Вложения

В списке pgsql-docs по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: xref labels: "Chapter 33", "Section 33.2"
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Threes errors of to_char Examples