Skip to content

err: sql: converting argument $1 type: unsupported type []uint64, a slice of uint64 #202

@242617

Description

@242617

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions