Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Fix support for JSON operators in DAO #798

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

splitfeed
Copy link
Contributor

@splitfeed splitfeed commented Sep 19, 2024

Remove check for unnamed parameters as it falsely triggers on JSON operators such as ?| or ?, so that queries such as this one can be used:

SELECT *
FROM message_projections
WHERE message_json->'categories' ?| array['newsletter', 'spam'];

Even after removing the exception thrown, Postgres picks up on the error and throws org.postgresql.util.PSQLException: No value specified for parameter 1.

Copy link

@jepp3 jepp3 merged commit 3e78297 into master Sep 23, 2024
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants