-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Simple objects returned from functions are converted to strings #1930
Labels
Comments
wolfgangwalther
added a commit
to wolfgangwalther/postgrest
that referenced
this issue
Aug 31, 2021
… type This is a regression after changing responses for RPCs with INOUT or OUT arguments in PostgREST#1654. Resolves PostgREST#1930.
wolfgangwalther
added a commit
to wolfgangwalther/postgrest
that referenced
this issue
Aug 31, 2021
… type This is a regression after changing responses for RPCs with INOUT or OUT arguments in PostgREST#1654. Resolves PostgREST#1930.
wolfgangwalther
added a commit
to wolfgangwalther/postgrest
that referenced
this issue
Sep 1, 2021
… type This is a regression after changing responses for RPCs with INOUT or OUT arguments in PostgREST#1654. Resolves PostgREST#1930.
wolfgangwalther
added a commit
to wolfgangwalther/postgrest
that referenced
this issue
Sep 2, 2021
… type This is a regression after changing responses for RPCs with INOUT or OUT arguments in PostgREST#1615. Resolves PostgREST#1930.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Description of issue
The return type changed from version 7.0.1 to version 8.0.0 for functions that return simple object arrays. In version 7.0.1 this returns the object with its original keys, but in version 8.0.0 the objects are converted to strings.
Defining a test function with permissions for anonymous users to run:
Using curl to post to this function:
curl -X POST http://127.0.0.1:3000/rpc/test -H "Accept: application/json"
With the PostgREST 7.0.1 image this returns (expected behavior):
Taking this image down and replacing with the PostgREST 8.0.0 image the same command returns:
The text was updated successfully, but these errors were encountered: