PL/Python: Convert numeric to Decimal

Peter Eisentraut <peter_e@gmx.net>

Commit: 7919398bac8bacd75ec5d763ce8b15ffaaa3e071
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2013-07-06T02:41:25Z
Releases: 9.4.0
PL/Python: Convert numeric to Decimal

The old implementation converted PostgreSQL numeric to Python float,
which was always considered a shortcoming.  Now numeric is converted to
the Python Decimal object.  Either the external cdecimal module or the
standard library decimal module are supported.

From: Szymon Guz <mabewlun@gmail.com>
From: Ronan Dunklau <rdunklau@gmail.com>
Reviewed-by: Steve Singer <steve@ssinger.info>

Files