Re: [COMMITTERS] pgsql: Fix json_to_record() bug with nested objects.

2016-03-03 Thread Andrew Dunstan
On 03/02/2016 11:31 PM, Tom Lane wrote: I added a regression test case based on his example, plus parallel tests for json_to_recordset, jsonb_to_record, jsonb_to_recordset. The latter three do not exhibit the same bug (which suggests that we may be missing some opportunities to share code...)

[COMMITTERS] pgsql: Fix json_to_record() bug with nested objects.

2016-03-02 Thread Tom Lane
Fix json_to_record() bug with nested objects. A thinko concerning nesting depth caused json_to_record() to produce bogus output if a field of its input object contained a sub-object with a field name matching one of the requested output column names. Per bug #13996 from Johann Visagie. I added a

[COMMITTERS] pgsql: Fix json_to_record() bug with nested objects.

2016-03-02 Thread Tom Lane
Fix json_to_record() bug with nested objects. A thinko concerning nesting depth caused json_to_record() to produce bogus output if a field of its input object contained a sub-object with a field name matching one of the requested output column names. Per bug #13996 from Johann Visagie. I added a

[COMMITTERS] pgsql: Fix json_to_record() bug with nested objects.

2016-03-02 Thread Tom Lane
Fix json_to_record() bug with nested objects. A thinko concerning nesting depth caused json_to_record() to produce bogus output if a field of its input object contained a sub-object with a field name matching one of the requested output column names. Per bug #13996 from Johann Visagie. I added a