From 7ea4fca4ed2c1fe04bcf13ccf476dd2aab750418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20de=20Menten?= Date: Sat, 28 Nov 2009 18:07:59 +0000 Subject: - changed a few isinstance(value, Decimal) to "is not None", where appropriate - fixed result processor for Numeric(asdecimal=False) on MSSQL. --- lib/sqlalchemy/dialects/postgresql/pypostgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/dialects/postgresql/pypostgresql.py') 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 -- cgit v1.2.1