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: Return status code 200 when PATCHing without changing rows #2538

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

wolfgangwalther
Copy link
Member

This partially reverts #1257 / #1272 / 5535317 where the 404 was introduced.

A 406 error is still returned when requesting a single object via accept header.

Returning an error when no rows are changed can be introduced through a different syntax again, see the discussion in #2164.

Fixes #2343

This partially reverts PostgREST#1257 / PostgREST#1272 / 5535317 where the 404 was introduced.

A 406 error is still returned when requesting a single object via accept header.

Returning an error when no rows are changed can be introduced through a different syntax again, see the discussion in PostgREST#2164.

Fixes PostgREST#2343

Signed-off-by: Wolfgang Walther <[email protected]>
@wolfgangwalther wolfgangwalther merged commit 3d2880d into PostgREST:main Oct 27, 2022
@wolfgangwalther wolfgangwalther deleted the no-row-patch-200 branch October 27, 2022 17:28
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.

Return an error message for 404 Not Found on PATCH/DELETE
2 participants