Changeset 773 for branches/4.x


Ignore:
Timestamp:
Jan 21, 2016, 8:04:52 AM (4 years ago)
Author:
cito
Message:

Do not call set_decimal in pgdb

The set_decimal() function is only relevant for the pg module (its getresult() method).
Don't call it in the pgdb module; the two modules should not interfere with each other.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.x/pgdb.py

    r711 r773  
    7373try:
    7474    from decimal import Decimal
    75     set_decimal(Decimal)
    7675except ImportError:  # Python < 2.4, unsupported
    7776    Decimal = float  # use float instead of Decimal
     
    114113    if decimal_type is not None:
    115114        _cast['numeric'] = Decimal = decimal_type
    116         set_decimal(Decimal)
    117115    return Decimal
    118116
Note: See TracChangeset for help on using the changeset viewer.