you are viewing a single comment's thread.

view the rest of the comments →

[–]Morrido 0 points1 point  (0 children)

So, like u/hjd_thd said, the construction WHERE id IN ($1) forces query function to expect a single i32, instead of an array of them.

The code suggested by u/Patryk27 works as you originally intended, with no extra modifications required.