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
Version is v1.5
type Id int64 //.... var msgId Id err = rows.Scan(&msgId) //...
A panic error:
http: panic serving [::1]:51143: reflect.Set: value of type int64 is not assignable to type Id net/http.(*conn).serve.func1(0xc8200de000, 0x11a00a8, 0xc8200ba018) /usr/local/go/src/net/http/server.go:1287 +0xb5 reflect.Value.assignTo(0x2f9520, 0xc8200a6710, 0x46, 0x40fb50, 0xb, 0x2f91a0, 0x0, 0x0, 0x0, 0x0) /usr/local/go/src/reflect/value.go:2158 +0x3be reflect.Value.Set(0x2f91a0, 0xc8200a6770, 0xc6, 0x2f9520, 0xc8200a6710, 0x46) /usr/local/go/src/reflect/value.go:1327 +0x95 database/sql.convertAssign(0x2de5c0, 0xc8200a6770, 0x2f9520, 0xc8200a6710, 0x0, 0x0) /usr/local/go/src/database/sql/convert.go:207 +0x7ca database/sql.(*Rows).Scan(0xc8200be240, 0xc8200f7780, 0x8, 0x8, 0x0, 0x0) /usr/local/go/src/database/sql/sql.go:1692 +0x47a
If change Id to :
type Id uint64
everything goes all right
The text was updated successfully, but these errors were encountered:
CL https://golang.org/cl/15420 mentions this issue.
Sorry, something went wrong.
4045774
No branches or pull requests
Version is v1.5
A panic error:
If change Id to :
everything goes all right
The text was updated successfully, but these errors were encountered: