添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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?

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?