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

Void functions return null instead of empty body #1795

Merged
merged 2 commits into from
Apr 7, 2021

Conversation

laurenceisla
Copy link
Member

Fixes #1762. Includes a test for functions returning an integer with null value.

Copy link
Member

@steve-chavez steve-chavez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@laurenceisla Nice one! The PR is on point 👍

@monacoremo monacoremo merged commit 7f11c1a into PostgREST:main Apr 7, 2021
@laurenceisla laurenceisla deleted the nullsrpc branch April 12, 2021 19:07
monacoremo pushed a commit to monacoremo/postgrest that referenced this pull request Jul 17, 2021
* Change empty body reponse to null for scalar functions returning void or null values

* Add test for functions returning an integer with null value

Co-authored-by: Laurence Isla <lau.isla.c@gmail.com>
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.

void functions return an empty body, which is invalid json
3 participants