| От | Andrew Dunstan |
|---|---|
| Тема | Re: jsonb_set array append hack? |
| Дата | |
| Msg-id | 56104784.8010006@dunslane.net обсуждение |
| Ответ на | Re: jsonb_set array append hack? (Peter Geoghegan <pg@heroku.com>) |
| Список | pgsql-hackers |
On 10/03/2015 04:49 PM, Peter Geoghegan wrote:
> On Mon, Sep 21, 2015 at 2:21 PM, Andrew Dunstan <andrew@dunslane.net> wrote:
>>> Thanks for the explanation. So, basically, it should be like this, am I
>>> right?
>>>
>>> postgres=# SELECT jsonb_set(
>>> '{"name": "Joe", "vehicle_types": ["car", "van"]}'::jsonb,
>>> '{vehicle_types, nonsense}',
>>> '"motorcycle"', true);
>>> ERROR: path element at the position 2 is not an integer
>> That seems reasonable. For that matter, we should probably disallow NULL
>> path elements also, shouldn't we?
> Are you planning on getting this in by Monday, Andrew? It would be
> nice to have this fixed going into beta.
>
Yeah, will look at it tonight or tomorrow.
cheers
andrew
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера