PL/Python: Convert numeric to Decimal
Peter Eisentraut <peter_e@gmx.net>
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
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/plpython.sgml | modified | +17 −6 |
| src/pl/plpython/expected/plpython_types_3.out | modified | +41 −8 |
| src/pl/plpython/expected/plpython_types.out | modified | +41 −8 |
| src/pl/plpython/plpy_typeio.c | modified | +32 −10 |
| src/pl/plpython/sql/plpython_types.sql | modified | +7 −2 |