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
I have an error
err: sql: converting argument $1 type: unsupported type []uint64, a slice of uint64
while passing uint64 array into db.QueryRow.
var IDs []uint64 ... if err = db.QueryRow(query, IDs).Scan(&result); err != nil { return }
How should I pass such a param?
The text was updated successfully, but these errors were encountered:
Isn't the variadic syntax working, using "..." after IDs ?
var IDs []uint64 ... if err = db.QueryRow(query, IDs...).Scan(&result); err != nil { return }
Sorry, something went wrong.
Unfortunately. I have query like this:
SELECT COLUMN_VALUE AS AGT_ID FROM TABLE(IDS_TAB(:1)) MINUS SELECT AGT_ID FROM TBL_1 TBL WHERE TBL.PRS_ID = :2
And []uint64 are for :1 param.
OK, I see.
This is related to golang/go#16235. See also commit "database/sql: allow drivers to support custom arg types" golang/go@a9bf3b2
@mattn don't see the interface driver.NamedValueChecker is implemented in go-oci8?
don't see the interface driver.NamedValueChecker is implemented in go-oci8?
Yes, but always return true. Then, the slice will be converted (if I will implement converter).
No branches or pull requests
I have an error
while passing uint64 array into db.QueryRow.
How should I pass such a param?
The text was updated successfully, but these errors were encountered: