On Wed, 25 Nov 2015 11:31:24 +0100
Christoph Zwerschke <[email protected]> wrote:
> Also, I consider the whole idea of converting money output to decimal
> in getresult() and dictresult() a hack. The main advantage of money
> over numeric is to have the currency in it, so why do we remove it on

Actually, that's secondary.  The whole idea behind the type was to
store money as an integral type to speed up accounting systems that
need to sum large rows of numbers such as in balance sheets, etc.

FYI, the money type was written by me based on a chapter that I wrote
for a book called "Software Solutions in C'.  That was back in the old
days when programmers actually cared about processing time.  :-)

> output? That's why I have now added an option to return the output as
> string with currency sign which in my view should become the default.
> If you are only interested in the numeric value, then you can simply
> return it as money_column::numeric which is a much cleaner solution.

Not unreasonable and it works now.  Is it too soon to do that change
for 5.0?  It's a big enough change that I would prefer to do it in a
major release and I don't know how long it will be until 6.0.

-- 
D'Arcy J.M. Cain
PyGreSQL Development Group
http://www.PyGreSQL.org IM:[email protected]
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to