Re: How to use the postgresql money type?

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: How to use the postgresql money type?
Дата
Msg-id 201101200758.19965.adrian.klaver@gmail.com
обсуждение исходный текст
Ответ на Re: How to use the postgresql money type?  (Federico Di Gregorio <federico.digregorio@dndg.it>)
Список psycopg
On Thursday 20 January 2011 7:45:30 am Federico Di Gregorio wrote:
> On 20/01/2011 16:40, A.M. wrote:

>
> But this makes sense. Do you mean that banker's rounding may depend on
> the locale? If that's the case and if PostgreSQL implements such
> gimmicks then the correct default for money would be to return it to
> Python as string and let the user decide how to proceed from there.
>
> federico

Info on the money type:
http://www.postgresql.org/docs/9.0/interactive/datatype-money.html

FYI this type at times has been marked as deprecated. There has been some recent
work on it but it has issues especially, from the link above, the dump output
and moving data to a different locale.

--
Adrian Klaver
adrian.klaver@gmail.com

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

Предыдущее
От: "A.M."
Дата:
Сообщение: Re: How to use the postgresql money type?
Следующее
От: "Carl S. Yestrau Jr."
Дата:
Сообщение: getquoted and unicode