Re: pgsql: Transforms for jsonb to PL/Python
От | Tom Lane |
---|---|
Тема | Re: pgsql: Transforms for jsonb to PL/Python |
Дата | |
Msg-id | 6087.1522473328@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: pgsql: Transforms for jsonb to PL/Python (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>) |
Ответы |
Re: pgsql: Transforms for jsonb to PL/Python
|
Список | pgsql-committers |
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes: > I'm looking into the regression test failures that appear to be minor > output differences. gaur (python 2.5) is showing a different output pathology: *** 246,253 **** return x $$; SELECT test1inf(); ! ERROR: could not convert value "inf" to jsonb ! CONTEXT: while creating return value PL/Python function "test1inf" -- test python -infinity -> jsonb CREATE FUNCTION test2inf() RETURNS jsonb --- 246,255 ---- return x $$; SELECT test1inf(); ! ERROR: ValueError: invalid literal for float(): inf ! CONTEXT: Traceback (most recent call last): ! PL/Python function "test1inf", line 2, in <module> ! x = float('inf') PL/Python function "test1inf" -- test python -infinity -> jsonb CREATE FUNCTION test2inf() RETURNS jsonb *************** https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=gaur&dt=2018-03-31%2002%3A50%3A13 regards, tom lane
В списке pgsql-committers по дате отправления: