Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wrong subquery error returning as 400 status #3206

Merged
merged 1 commit into from
Feb 3, 2024

Conversation

steve-chavez
Copy link
Member

Closes #3205.

Also considers that pg-safeupdate uses the cardinality_violation(ref) code for reporting an error and in this case we want to keep 400 Bad Request. This is done by checking the pg-safeupdate error message.

@steve-chavez steve-chavez merged commit 45cabac into PostgREST:main Feb 3, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Wrong subquery returns as 400 Bad Request
1 participant