Re: Money casting too liberal?

Поиск
Список
Период
Сортировка
От D'Arcy J.M. Cain
Тема Re: Money casting too liberal?
Дата
Msg-id 20130328171307.307a06c7@imp
обсуждение исходный текст
Ответ на Re: Money casting too liberal?  (Jasen Betts <jasen@xnet.co.nz>)
Ответы Re: Money casting too liberal?  (John R Pierce <pierce@hogranch.com>)
Re: Money casting too liberal?  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
Список pgsql-general
On 28 Mar 2013 20:50:42 GMT
Jasen Betts <jasen@xnet.co.nz> wrote:
> it actually does that, if you have the locale installed you can set
> LC_MONETARY to  Japan  and get no decimals and a Yen symbol
> or to UAE and get three decimals and their currency symbol.

Must have been added by someone else after I worked on it.  I thought
about that issue but felt that that was the wrong solution.  The
problem is that the same data displays differently depending on who
runs the query.

I would have rather made that part of the column definition similar to
how we create timestamps with or without timezones.  If a column is
tracking Yen it should always be Yen.  Y10,000 should never display as
$100.00 just because the locale changes.

--
D'Arcy J.M. Cain <darcy@druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 788 2246     (DoD#0082)    (eNTP)   |  what's for dinner.
IM: darcy@Vex.Net, VOIP: sip:darcy@Vex.Net


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

Предыдущее
От: Kevin Grittner
Дата:
Сообщение: Re: ts_tovector() to_query()
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Money casting too liberal?