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
1.26.0
Input:
-- name: GetSize :one SELECT sum(length(data)) FROM authors;
Output:
func (q *Queries) GetSize(ctx context.Context) (sql.NullFloat64, error) { row := q.db.QueryRowContext(ctx, getSize) var sum sql.NullFloat64 err := row.Scan(&sum) return sum, err }
Shouldn't the output NullFloat64 become NullInt64?
No response
CREATE TABLE authors ( data BLOB NOT NULL );
{ "version": "2", "sql": [{ "schema": "schema.sql", "queries": "query.sql", "engine": "sqlite", "gen": { "go": { "out": "db" } } }] }
https://play.sqlc.dev/p/66dd776b0c5aac077388f94ebc16d73088d78b36d0b8218113683aa13a371687
Windows
SQLite
Go
The text was updated successfully, but these errors were encountered:
Related to #3122.
Sorry, something went wrong.
No branches or pull requests
Version
1.26.0
What happened?
Input:
Output:
Shouldn't the output NullFloat64 become NullInt64?
Relevant log output
No response
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/66dd776b0c5aac077388f94ebc16d73088d78b36d0b8218113683aa13a371687
What operating system are you using?
Windows
What database engines are you using?
SQLite
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: