Re: inconsistent behaviour of json_to_record and friends with embedded json
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: inconsistent behaviour of json_to_record and friends with embedded json |
| Дата | |
| Msg-id | 17308.1560274534@sss.pgh.pa.us обсуждение |
| Ответ на | Re: inconsistent behaviour of json_to_record and friends with embedded json (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: inconsistent behaviour of json_to_record and friends withembedded json
|
| Список | pgsql-bugs |
I wrote:
> I agree. It looks to me like the problem is this over-optimistic
> assumption:
> /*
> * Add quotes around string value (should be already escaped) if
> * converting to json/jsonb.
> */
> No, it's *not* already escaped. Fixing the code to use escape_json()
> is a bit tedious, because for some reason that function wasn't designed
> to support non-null-terminated input, but with the attached patch we get
> what seems to me like sane behavior:
Hearing no comments, I've pushed this patch. I also rewrote the
documentation to provide something approaching a specification for
what json_to_record() and friends do.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера