diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-23 19:17:22 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-23 19:17:22 -0500 |
commit | 579f09974b4813f35fe0c701bbf678d5eccc4aeb (patch) | |
tree | 41835f2d43d7c48d85d30bdc384d1177db502c64 | |
parent | 54b8969be144a642311da60656a4d0410eff7030 (diff) | |
download | sqlalchemy-579f09974b4813f35fe0c701bbf678d5eccc4aeb.tar.gz |
pg8000 fix for decimal return scale
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/pg8000.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/pg8000.py b/lib/sqlalchemy/dialects/postgresql/pg8000.py index cd9c545f3..6beb9fbef 100644 --- a/lib/sqlalchemy/dialects/postgresql/pg8000.py +++ b/lib/sqlalchemy/dialects/postgresql/pg8000.py @@ -40,7 +40,8 @@ class _PGNumeric(sqltypes.Numeric): if self.asdecimal: if coltype in _FLOAT_TYPES: return processors.to_decimal_processor_factory( - decimal.Decimal, self.decimal_return_scale) + decimal.Decimal, + self._effective_decimal_return_scale) elif coltype in _DECIMAL_TYPES or coltype in _INT_TYPES: # pg8000 returns Decimal natively for 1700 return None |