I want to be able to write an array of bigints into a table that I am using for history in Go. Unfortunately, I can\'t and when I do the error sql: converting Exec argumen
sql: converting Exec argumen
Arrays are supported in github.com/lib/pq since 2016 Aug 6th. OP's statement could be written as:
github.com/lib/pq
_, err := db.Exec( "INSERT INTO history VALUES ($1, $2, $3, $4)", rand.Int63(), pq.Array(t.productids), // <------- card.cid, t.salepoint, )