We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aabbae commit 2f93c3fCopy full SHA for 2f93c3f
src/routines/getByIdsUsingJoiningTable.js
@@ -28,7 +28,7 @@ export default async (
28
${sql.raw(identifiers)}
29
FROM ${sql.identifier([joiningTableName])} r1
30
INNER JOIN ${sql.identifier([targetResourceTableName])} r2 ON r2.id = ${sql.identifier(['r1', joiningKeyName + '_id'])}
31
- WHERE ${sql.identifier(['r1', lookupKeyName + '_id'])} IN (${sql.valueList(ids)})
+ WHERE ${sql.identifier(['r1', lookupKeyName + '_id'])} = ANY(${sql.array(ids, 'int4')})
32
`);
33
}
34
0 commit comments