We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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.12.0
A bug! Cf the playgound: https://play.sqlc.dev/p/12ef4fd5df98251667114c2086d5f3e8c9cf809098e8aa92ed7938a548fd3b24
Output code is not valid:
func (q *Queries) LocationByUuid(ctx context.Context, uuid uuid.UUID) (uuid.UUID, error) { row := q.db.QueryRowContext(ctx, locationByUuid, uuid) var other_uuid uuid.UUID err := row.Scan(&other_uuid) return other_uuid, err }
var other_uuid uuid.UUID cannot work with a param named uuid already.
var other_uuid uuid.UUID
uuid
uuid.UUID undefined (type uuid.UUID has no field or method UUID) (typecheck) ^
-- Example queries for sqlc CREATE TABLE locations ( uuid uuid NOT NULL, other_uuid uuid NOT NULL, name text NOT NULL );
-- name: LocationByUuid :one SELECT other_uuid FROM locations WHERE uuid=$1;
{ "version": "1", "packages": [ { "path": "db", "engine": "postgresql", "schema": "query.sql", "queries": "query.sql" } ], "overrides": [] }
https://play.sqlc.dev/p/12ef4fd5df98251667114c2086d5f3e8c9cf809098e8aa92ed7938a548fd3b24
Linux
PostgreSQL
Go
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Version
1.12.0
What happened?
A bug! Cf the playgound: https://play.sqlc.dev/p/12ef4fd5df98251667114c2086d5f3e8c9cf809098e8aa92ed7938a548fd3b24
Output code is not valid:
var other_uuid uuid.UUID
cannot work with a param nameduuid
already.Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/12ef4fd5df98251667114c2086d5f3e8c9cf809098e8aa92ed7938a548fd3b24
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: