| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера