| From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
|---|---|
| To: | Robert Vollmert <rob(at)vllmrt(dot)net> |
| Cc: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: inconsistent behaviour of json_to_record and friends with embedded json |
| Date: | 2019-06-01 19:06:27 |
| Message-ID: | CAMkU=1yjwaXTEDG3b-LC54s4y6BpmUsS8z-WvP8oA_ryukk8+w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
On Thu, May 30, 2019 at 10:41 AM Robert Vollmert <rob(at)vllmrt(dot)net> wrote:
>
> 1. select * from json_to_record('{"out": "{\"key\": 1}"}') as (out json);
>
...
> Postgres 10/11:
>
> 1. gives
>
> ERROR: invalid input syntax for type json
> DETAIL: Token "key" is invalid.
> CONTEXT: JSON data, line 1: "{“key…
>
This is caused by commit:
commit cf35346e813e5a1373f308d397bb0a8f3f21d530
Author: Andrew Dunstan <andrew(at)dunslane(dot)net>
Date: Thu Apr 6 22:11:21 2017 -0400
Make json_populate_record and friends operate recursively
As far as I can tell, this was not an intended change, so I agree it is
probably a bug.
Cheers,
Jeff
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2019-06-01 19:12:32 | Re: inconsistent behaviour of json_to_record and friends with embedded json |
| Previous Message | Tom Lane | 2019-06-01 18:06:28 | Re: BUG #15827: Unable to connect on Windows using pg_services.conf using Python psycopg2 |