Improve type conversion of SPI_processed in Python

Peter Eisentraut <peter_e@gmx.net>

Commit: 918e02a221db1ee40d545cb05dc9d8d392b4b743
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2018-01-20T13:02:01Z
Releases: 11.0
Improve type conversion of SPI_processed in Python

The previous code converted SPI_processed to a Python float if it didn't
fit into a Python int.  But Python longs have unlimited precision, so
use that instead in all cases.

As in eee50a8d4c389171ad5180568a7221f7e9b28f09, we use the Python
LongLong API unconditionally for simplicity.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>

Files

PathChange+/−
src/pl/plpython/plpy_cursorobject.c modified +1 −3
src/pl/plpython/plpy_spi.c modified +2 −6