bug in json_to_record with arrays - Mailing list pgsql-hackers

From Josh Berkus
Subject bug in json_to_record with arrays
Date
Msg-id 54763009.4010409@agliodbs.com
Whole thread Raw
List pgsql-hackers
Tested on 9.4b3, 9.4rc1, 9.5devel

select * from json_to_record('
{"id":1,"val":"josh","valry":["potter","chef","programmer"]}') as r(id
int, val text, valry text[]);

ERROR:  missing dimension value

With some experimentation, I can't find any way to convert a JSON array
to an array field using json_to_record or json_to_recordset.  I know
this worked back in January, though.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: no test programs in contrib
Next
From: Josh Berkus
Date:
Subject: Re: bug in json_to_record with arrays