79270132

Date: 2024-12-11 00:10:10
Score: 1
Natty:
Report link

The answer is simpler then I though. Sqlc( At least for postgres) can't translate the in to a list of items. The result should be got using the ANY and bigserial

select c.* from TB_COMMENTS c where c.id = ANY ($1::BIGSERIAL[]);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: TalesMGodois