Re: BUG #17694: In JSONPath expressions, characters between leading $ and dot appear to be ignored

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: BUG #17694: In JSONPath expressions, characters between leading $ and dot appear to be ignored
Дата
Msg-id 7B406A27-7142-4F6D-976A-207B4487C7C3@justatheory.com
обсуждение исходный текст
Ответ на Re: BUG #17694: In JSONPath expressions, characters between leading $ and dot appear to be ignored  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: BUG #17694: In JSONPath expressions, characters between leading $ and dot appear to be ignored
Список pgsql-bugs
On Nov 24, 2022, at 12:16, David G. Johnston <david.g.johnston@gmail.com> wrote:

> There is a bug in this area though the syntax itself is valid since you've simply defined a variable.

Sorry, I don’t follow. What variable is defined? I mean `$` is a variable for the whole expression, and always required
atthe start of a JSONPath, AFAICT. But when running 

    select '{"foo": 1}' @? ‘$foo'

or

    select '{}' @? ‘$foo'

(both of which incorrectly return true), there is no `$foo` path; it has to be `$.foo`.

Best,

David


Вложения

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: BUG #17696: Creation of deferrable initially deferred constraint breaks before transaction commit
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: BUG #17694: In JSONPath expressions, characters between leading $ and dot appear to be ignored