-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
A couple of JSONB operators like ?| and ?& don't play nice with the library.
Notice how they seem to be interpreted as named parameters in the first query.
-- @?|@ is probably being interpreted as a named parameter
> extractNames "SELECT foo FROM my_table WHERE (foo->'mood'->'tag_keys' ?| ?selectedTags);"
Left PostgreSQL named parameter error: Query contains an empty name: SELECT foo FROM my_table WHERE (foo->'mood'->'tag_keys' ?| ?selectedTags);
>
-- @> works perfectly fine.Not that this query itself is correct.
-- Just using it to enable some contrast with the above
> extractNames "SELECT foo FROM my_table WHERE (foo->'mood'->'tag_keys' @> ?selectedTags);"
Right ("SELECT foo FROM my_table WHERE (foo->'mood'->'tag_keys' @> ?);","selectedTags" :| [])Metadata
Metadata
Assignees
Labels
No labels