[orm-devel] Firebird numeric column

Werner F. Bruhin orm-devel@mailman.tux4web.de
Mon, 01 Sep 2003 12:15:15 +0200


Hi Diedrich,

Just noticed that numeric columns defined as numeric 2.1 in the db get 
returned as 2.2.

Made the following change in firebird.columns.numericcolumns.set_from_result

from:

            self._data = FixedPoint(data, decimals) / FixedPoint(pow(10,
                                                                    
decimals))

to:

            self._data = FixedPoint(data, decimals) / FixedPoint(pow(10,
                                                                    
decimals), decimals)

Can you see any problem with this fix?

See you
Werner