Обсуждение: pgsql: Prevent NaN in jsonb/plpython transform

Поиск
Список
Период
Сортировка

pgsql: Prevent NaN in jsonb/plpython transform

От
Peter Eisentraut
Дата:
Prevent NaN in jsonb/plpython transform

As in e348e7ae5727a6da8678036d748e5c5af7deb6c9 for jsonb/plperl, prevent
putting a NaN into a jsonb numeric field.

Tests for this had been removed in
6278a2a262b63faaf47eb2371f6bcb5b6e3ff118, but in case they are ever
resurrected: This would change the output of the test1nan() function to
an error.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/40f52b16dd31aa9ddc3bd42daa78459562693567

Modified Files
--------------
contrib/jsonb_plpython/jsonb_plpython.c | 11 +++++++++++
1 file changed, 11 insertions(+)