Open
Description
Boolean array, always passed as a boolean value, here is an example:
await sql`SELECT ${[false, true]} AS bool_array`
// Result(1) [ { bool_array: false } ]
this query is throwing an error
await sql`SELECT ${[true, false]}::bool[]`;
// Error cannot cast type boolean to boolean[]
I think this PR solves this problem
#392
Activity
binikingi commentedon Dec 12, 2022
For now what im doing is this:
fix: Remove array support from inferType.