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?
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?