Open CobaltCause opened 2 years ago
Oh, even if this coercion didn't happen, https://github.com/encode/databases/issues/286 would be hit. Further, it turns out that just changing things.id IN :ids
to things.id = ANY(:ids)
makes it work as-is. Both of these things should probably get documented prominently somewhere.
databases should support the IN
clause as it is elementary SQL and is compatible with sqlalchemy as well. Users who use IN
also get presented a meaningless error which doesn't help. I also got tripped on this error.
This code:
Produces:
I expected the query to run successfully and
x
to be an empty list.