diff options
author | Gaëtan de Menten <gdementen@gmail.com> | 2009-11-28 18:07:59 +0000 |
---|---|---|
committer | Gaëtan de Menten <gdementen@gmail.com> | 2009-11-28 18:07:59 +0000 |
commit | 7ea4fca4ed2c1fe04bcf13ccf476dd2aab750418 (patch) | |
tree | dc3f0561fe40e279b064d9d23e0777ec075e19a2 /lib/sqlalchemy/dialects/postgresql/pypostgresql.py | |
parent | 7fedc5e0708c27b646d32f88f532b34f0f898997 (diff) | |
download | sqlalchemy-7ea4fca4ed2c1fe04bcf13ccf476dd2aab750418.tar.gz |
- changed a few isinstance(value, Decimal) to "is not None", where appropriate
- fixed result processor for Numeric(asdecimal=False) on MSSQL.
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/pypostgresql.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/pypostgresql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/pypostgresql.py b/lib/sqlalchemy/dialects/postgresql/pypostgresql.py index 2c33b3eb5..77ed44512 100644 --- a/lib/sqlalchemy/dialects/postgresql/pypostgresql.py +++ b/lib/sqlalchemy/dialects/postgresql/pypostgresql.py @@ -22,7 +22,7 @@ class PGNumeric(sqltypes.Numeric): return None else: def process(value): - if isinstance(value, decimal.Decimal): + if value is not None: return float(value) else: return value |