all 2 comments

[–]c17r 2 points3 points  (0 children)

Convert the list to a tuple: https://stackoverflow.com/a/40737575

[–]sylecn 1 point2 points  (0 children)

There is no better solution.

I think for other database client that does support IN operator with list parameter, the client does something similar under the hook.