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
interface{}
1.27.0
Querying SELECT SUM(val) FROM authors will return interface{} instead if int
SELECT SUM(val) FROM authors
int
No response
CREATE TABLE authors ( val INT NOT NULL );
-- name: GetSum :one SELECT SUM(val) FROM authors;
{ "version": "2", "sql": [{ "schema": "schema.sql", "queries": "query.sql", "engine": "mysql", "gen": { "go": { "out": "db" } } }] }
https://play.sqlc.dev/p/a38fb22db5ce7e2309fd44c197b20ade5e3b8f8f61085b8b39656ee651ff4ddf
MySQL
Go
The text was updated successfully, but these errors were encountered:
Same BTW for MAX() with PostgreSQL on an INTEGER-type column. Seems like a more general issue.
MAX()
INTEGER
Sorry, something went wrong.
No branches or pull requests
Version
1.27.0
What happened?
Querying
SELECT SUM(val) FROM authors
will returninterface{}
instead ifint
Relevant log output
No response
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/a38fb22db5ce7e2309fd44c197b20ade5e3b8f8f61085b8b39656ee651ff4ddf
What operating system are you using?
No response
What database engines are you using?
MySQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: