git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 02d2b69) | patch
PL/Python: Convert numeric to Decimal
Sat, 6 Jul 2013 02:41:25 +0000 (22:41 -0400)
Sat, 6 Jul 2013 02:41:25 +0000 (22:41 -0400)
commit 7919398bac8bacd75ec5d763ce8b15ffaaa3e071
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>
doc/src/sgml/plpython.sgml diff | blob | blame | history
src/pl/plpython/expected/plpython_types.out diff | blob | blame | history
src/pl/plpython/expected/plpython_types_3.out diff | blob | blame | history
src/pl/plpython/plpy_typeio.c diff | blob | blame | history
src/pl/plpython/sql/plpython_types.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /