Could not determine data type on 2.0.20180129

(枫知秋) #1
CREATE TABLE "test" ("ids" INT[]);
db.Exec(`SELECT * FROM test WHERE 320445164143771649=ANY("ids")`)

it works.

db.Exec(`SELECT * FROM test WHERE $1=ANY("ids")`, 320445164143771649)

pq: could not determine data type of placeholder $1