Re: monetary bug
От | Hannu Krosing |
---|---|
Тема | Re: monetary bug |
Дата | |
Msg-id | 1093211787.30919.5.camel@fuji.krosing.net обсуждение исходный текст |
Ответ на | Re: monetary bug (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
On P, 2004-08-22 at 23:07, Tom Lane wrote: > Peter Eisentraut <peter_e@gmx.net> writes: > > Tom Lane wrote: > >> We keep hoping someone will step up to the plate and rewrite it, > >> instead. Per previous discussion, the type really ought to be a thin > >> layer over "numeric", with most likely no operations of its own > >> except I/O conversion. > > > And what would it do with it? Add a currency symbol? Which one? Which > > form? Where? Format the numbers some way? > > The idea behind the money type is to format per the lc_monetary locale > setting, which seems perfectly reasonable to me. so if you put in $1.00 using en_US.UTF8 then another user using en_CA would get 1.00CAD and I would get 1.00 EEK ? It does make /some/ sense - I would be all for that if this is the sum I mus pay, but object strongly if the sum must be paid *to* me ;) -------------- Hannu
В списке pgsql-hackers по дате отправления: