Re: pgsql: Additional functions and operators for jsonb

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: pgsql: Additional functions and operators for jsonb
Дата
Msg-id 5552666F.20409@dunslane.net
обсуждение исходный текст
Ответ на Re: pgsql: Additional functions and operators for jsonb  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-committers
On 05/12/2015 04:11 PM, Pavel Stehule wrote:
> Hi
>
> I did some tests, and I am not sure if this is not bug:
>
> postgres=# select '{"x":20}'::jsonb - 'x'::text;
> ERROR:  unknown type of jsonb container --->>> it should be empty
> jsonb, not error
> Time: 0.971 ms
> postgres=# select '{"x":20, "y":30}'::jsonb - 'x'::text;
> ┌───────────┐
> │ ?column?  │
> ╞═══════════╡
> │ {"y": 30} │
> └───────────┘
> (1 row)
>
>
> Regards
>
> Pavel
>

Yes. that's a bug.

will check.

cheers

andrew


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgsql: Additional functions and operators for jsonb
Следующее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Fix some errors from jsonb functions patch.