diff options
| author | Jason Kirtland <jek@discorporate.us> | 2007-11-18 19:01:42 +0000 |
|---|---|---|
| committer | Jason Kirtland <jek@discorporate.us> | 2007-11-18 19:01:42 +0000 |
| commit | d3f6ae2332a546967469eb2953a080537dff68c6 (patch) | |
| tree | f8ebfeaea682c0ee78bc71aa64d427f3503d0950 /lib/sqlalchemy | |
| parent | ea627ebe5c8c34ffc4ab5efd04a4855c9419e9c6 (diff) | |
| download | sqlalchemy-d3f6ae2332a546967469eb2953a080537dff68c6.tar.gz | |
- Clarified use of python's Decimal
Diffstat (limited to 'lib/sqlalchemy')
| -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 |
