Contact: fumanchu@aminus.org

Log in as guest/dejavu to create tickets

I think I've seen this ORM somewhere before...

Changeset 402

Show
Ignore:
Timestamp:
01/24/07 20:59:27
Author:
fumanchu
Message:

Final fix for #82 (Support for psycopg2). Numbers test fixed by proper coercion of decimal to fixedpoint.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/storage/geniusql.py

    r401 r402  
    359359     
    360360    def coerce_any_to_fixedpoint_FixedPoint(self, value): 
    361         if isinstance(value, basestring): 
     361        if (isinstance(value, basestring) or 
     362            decimal and isinstance(value, decimal.Decimal)): 
    362363            # Unicode really screws up fixedpoint; for example: 
    363364            # >>> fixedpoint.FixedPoint(u'111111111111111111111111111.1')