-
Notifications
You must be signed in to change notification settings - Fork 2.8k
use named notation for function arguments if any argument is not specified (fix #2730) #2777
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 db927b9 |
|
Review app for commit 9f0f089 deployed to Heroku: https://hge-ci-pull-2777.herokuapp.com |
|
Review app for commit 08793c2 deployed to Heroku: https://hge-ci-pull-2777.herokuapp.com |
08793c2 to
1f32b4e
Compare
|
Review app for commit 1f32b4e deployed to Heroku: https://hge-ci-pull-2777.herokuapp.com |
1f32b4e to
72cd178
Compare
|
Review app for commit 82f7628 deployed to Heroku: https://hge-ci-pull-2777.herokuapp.com |
=> Implement algorithm suggested by @lexi-lambda for parsing function arguments => Bump catalog version to 22
|
Review app for commit db927b9 deployed to Heroku: https://hge-ci-pull-2777.herokuapp.com |
| Nothing -> throw400 NotSupported | ||
| "Only last set of positional arguments can be omitted" | ||
| Nothing -> if not hasDefault then | ||
| throw400 NotSupported "Non default arguments cannot be omitted" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for plumbing this information through.
|
Review app https://hge-ci-pull-2777.herokuapp.com is deleted |
…ified (fix hasura#2730) (hasura#2777) * use positional arguments in SQL functions * only allow omitting set of last arguments in functions * disallow omitting of a non default argument in functions
Description
The server used to generate SQL for calling functions using positional notation. If any argument is not present then the Postgres query fails as mentioned in #2730. This pull fixes it by using named notation to handle such cases.
Affected components
Related Issues
fix #2730
Solution and Design
namednotation syntax for function arguments toSQLExpdata typenamednotation if not all arguments are specified in the querySteps to test and verify
Follow the test case added in this pull
Limitations, known bugs & workarounds