Re: function 'IS JSON ARRAY' not identified
| От | Tom Lane |
|---|---|
| Тема | Re: function 'IS JSON ARRAY' not identified |
| Дата | |
| Msg-id | 3263995.1748877555@sss.pgh.pa.us обсуждение |
| Ответ на | function 'IS JSON ARRAY' not identified ("Badia, Antonio" <antonio.badia@louisville.edu>) |
| Ответы |
Re: function 'IS JSON ARRAY' not identified
|
| Список | pgsql-bugs |
"Badia, Antonio" <antonio.badia@louisville.edu> writes:
> When running query
> select d.data - 'keya' || jsonb_build_object('keya', jsonb_array_elements(d.data::jsonb-> 'keya'))
> from "Jsondata2" as d
> where jsonb_exists(d.data '$.keya') and d.data->'keya' is not null and d.data->'keya' IS JSON ARRAY;
> I get the error message:
> ERROR: syntax error at or near "JSON" LINE 3: ... d.data->'keya' is not null and d.data->'keya' IS JSON ARRAY... ^
> SQL state: 42601
> Character: 213
> Running Postgresql on MacOS (Sequoia 15.5), installed via homebrew:
> antonio@mac POSTGRES % psql
> psql (14.18 (Homebrew), server 14.17 (Homebrew))
IS JSON ARRAY was added in PG v16.
regards, tom lane
В списке pgsql-bugs по дате отправления: