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
Hi, Small thing, but please change example usage code for sql.Out from: _, err := db.ExecContext(ctx, "ProcName", sql.Named("Arg1", Out{Dest: &outArg})) to: _, err := db.ExecContext(ctx, "ProcName", sql.Named("Arg1", sql.Out{Dest: &outArg}))
_, err := db.ExecContext(ctx, "ProcName", sql.Named("Arg1", Out{Dest: &outArg}))
_, err := db.ExecContext(ctx, "ProcName", sql.Named("Arg1", sql.Out{Dest: &outArg}))
Line 288 in database/sql/sql.go
go version
Go 1.9
Yes
go env
linux/amd64 (Windows Subsystem for Linux)
I copied the code in the example usage of the new Out parameter and the compiler complained about unknown type Out
Out
N/A
Compile error
The text was updated successfully, but these errors were encountered:
CC @kardianos
Sorry, something went wrong.
You are correct @pieterlouw . I'll send a fix for the docs soon to add the sql. package to the Out identifier. Thanks for spotting that.
sql.
Change https://golang.org/cl/71550 mentions this issue: database/sql: fix example usage of Out
database/sql: fix example usage of Out
a9afa4e
No branches or pull requests
Hi,
Small thing, but please change example usage code for sql.Out from:
_, err := db.ExecContext(ctx, "ProcName", sql.Named("Arg1", Out{Dest: &outArg}))
to:
_, err := db.ExecContext(ctx, "ProcName", sql.Named("Arg1", sql.Out{Dest: &outArg}))
Line 288 in database/sql/sql.go
What version of Go are you using (
go version
)?Go 1.9
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?linux/amd64 (Windows Subsystem for Linux)
What did you do?
I copied the code in the example usage of the new Out parameter and the compiler complained about unknown type
Out
What did you expect to see?
N/A
What did you see instead?
Compile error
The text was updated successfully, but these errors were encountered: