-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix absence of "args" input field omits session variable argument for v2 functions (fix #3575) #3585
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
Conversation
|
Deploy preview for hasura-docs ready! Built with commit d8f9e38 |
|
/heroku deploy |
|
Review app for commit 5ad8898 deployed to Heroku: https://hge-ci-pull-3585.herokuapp.com |
|
Review app for commit d8f9e38 deployed to Heroku: https://hge-ci-pull-3585.herokuapp.com |
|
Review app https://hge-ci-pull-3585.herokuapp.com is deleted |
|
Is there a chance for minor release for this? |
|
Can confirm preview app via docker image works. |
Description
For custom SQL functions, the
argsinput field is not generated if the function does not have any input arguments other than the session variable argument. In such a case, the omission ofargsinput field defaults to empty arguments and session variable argument is ignored. This is creating a Postgres query error since the SQL function is executed with no input arguments. Refer to the related issue (see below) for more details.This PR fixes the above-said issue.
Affected components
Related Issues
Fix #3576
Solution and Design
parseFunctionArgsfunction is improved to acceptargsinput field value asMaybetype.argsinput provided, the known argument values (in this case session variable argument) are resolved as positional arguments.Server checklist
Catalog upgrade
Does this PR change Hasura Catalog version?
Metadata
Does this PR add a new Metadata feature?
GraphQL
Breaking changes
Steps to test and verify
Limitations, known bugs & workarounds