Re: cast from integer to money

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: cast from integer to money
Дата
Msg-id 411C71DF-861A-44DF-BC2D-B3DCE9418B20@gmail.com
обсуждение исходный текст
Ответ на Re: cast from integer to money  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
On Mar 31, 2011, at 6:39 PM, Stephen Frost <sfrost@snowman.net> wrote:
> * Kevin Grittner (Kevin.Grittner@wicourts.gov) wrote:
>> If you're just talking about going in the one direction, I might be
>> persuaded that's sane, especially because of the case of literals,
>> and especially since there are currencies where fractional amounts
>> aren't used in the conventional representation.
> 
> Going just integer->money, with the "1" -> "$1.00", seems completely
> reasonable to me.  As for being too late in the cycle..  if someone's
> willing to do the work, I can't imagine it breaking anything, so I
> wouldn't be against putting it in.  It really should be before the
> first beta tho.

Agreed, emphatically.

...Robert


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Bug in autovacuum.c?
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: corner case about replication and shutdown