Re: Python interface and Money?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Python interface and Money?
Дата
Msg-id 24032.1003957844@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Python interface and Money?  (Thomas Lockhart <lockhart@fourpalms.org>)
Ответы Re: Python interface and Money?
Список pgsql-interfaces
Thomas Lockhart <lockhart@fourpalms.org> writes:
> Hmm. If we keep the money type then we should change the internal
> implementation to use numeric or decimal or at least int64 instead of
> int32. Comments?

I'd suggested some time ago that money should be rewritten as a thin
wrapper around numeric: it wouldn't have to do much except substitute
new I/O functions, and perhaps find a way to set the default scale
to match whatever is the customary number of monetary decimal places
in the current locale.  I think this is already on the TODO list.
        regards, tom lane


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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: Python interface and Money?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Python interface and Money?