We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sqlc.(n?)arg
1.13.0
I accidentally passed 0 arguments into sqlc.narg and received the following panic:
sqlc.narg
goroutine 1 [running]: github.com/kyleconroy/sqlc/internal/sql/validate.ParamStyle({...., ......})
Which comes from this line:
https://github.com/kyleconroy/sqlc/blob/c2dcd56a5d8b2a3b2fa9c7f6545d0b1d5555be29/internal/sql/validate/param_style.go#L19
Although this is invalid input, it would be nice to have an error message printed out.
No response
Linux
PostgreSQL
Go
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Version
1.13.0
What happened?
I accidentally passed 0 arguments into
sqlc.narg
and received the following panic:Which comes from this line:
https://github.com/kyleconroy/sqlc/blob/c2dcd56a5d8b2a3b2fa9c7f6545d0b1d5555be29/internal/sql/validate/param_style.go#L19
Although this is invalid input, it would be nice to have an error message printed out.
Relevant log output
No response
Database schema
No response
SQL queries
No response
Configuration
No response
Playground URL
No response
What operating system are you using?
Linux
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: