Skip to content
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

getting-started-sqlite.md - wrong return value of queries.CreateAuthor #3336

Open
powellnorma opened this issue Apr 15, 2024 · 0 comments
Open
Labels
bug Something isn't working triage New issues that hasn't been reviewed

Comments

@powellnorma
Copy link

Version

1.26.0

What happened?

In https://github.com/sqlc-dev/sqlc/blob/v1.26.0/docs/tutorials/getting-started-sqlite.md?plain=1#L162

insertedAuthor, err := queries.CreateAuthor(ctx, tutorial.CreateAuthorParams{..}
[..]
queries.GetAuthor(ctx, insertedAuthor.ID)

But insertedAuthor is sql.Result, which has no .ID attribute.

For getting-started-mysql.md it already got updated:
https://github.com/sqlc-dev/sqlc/blob/v1.26.0/docs/tutorials/getting-started-mysql.md?plain=1#L136

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?

No response

What database engines are you using?

No response

What type of code are you generating?

No response

@powellnorma powellnorma added bug Something isn't working triage New issues that hasn't been reviewed labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage New issues that hasn't been reviewed
Projects
None yet
Development

No branches or pull requests

1 participant