Re: Bug with locale (decimale/group seperator in numbers)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug with locale (decimale/group seperator in numbers)
Дата
Msg-id 16939.1053612256@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bug with locale (decimale/group seperator in numbers)  (Hannes Wenzel <h.wenzel@aon.at>)
Список pgsql-bugs
Hannes Wenzel <h.wenzel@aon.at> writes:
> A select with a to_char function to convert number to formated output with
> locale support produces wrong group seperator characters.

I think this must be a bug in the definition of that particular locale
on your system.  I get reasonable-looking behavior here:

regression=# select to_char(1719000.00000,'999G999G990D00');
     to_char
-----------------
    1,719,000.00
(1 row)

regression=# set lc_numeric TO 'de_DE.iso885915@euro';
SET
regression=# select to_char(1719000.00000,'999G999G990D00');
     to_char
-----------------
    1.719.000,00
(1 row)


            regards, tom lane

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

Предыдущее
От: Jari Aalto
Дата:
Сообщение: 7.3.2 doc bug - A.1. Getting The Source Via Anonymous CVS
Следующее
От: Sean Chittenden
Дата:
Сообщение: Different results in a loop with RECORD vs ROWTYPE...