diff options
-rw-r--r-- | lib/sqlalchemy/types.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py index b27530987..0f93b8e34 100644 --- a/lib/sqlalchemy/types.py +++ b/lib/sqlalchemy/types.py @@ -17,7 +17,7 @@ import inspect import datetime as dt from sqlalchemy import exceptions -from sqlalchemy.util import Decimal, pickle +from sqlalchemy.util import pickle, Decimal as _python_Decimal class _UserTypeAdapter(type): """adapts 0.3 style user-defined types with convert_bind_param/convert_result_value @@ -384,7 +384,7 @@ class Numeric(TypeEngine): if self.asdecimal: def process(value): if value is not None: - return Decimal(str(value)) + return _python_Decimal(str(value)) else: return value return process |