We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fefdff commit 0f01ff3Copy full SHA for 0f01ff3
1 file changed
src/index.js
@@ -334,7 +334,11 @@ class DSSqlAdapter {
334
getTable(localResourceConfig),
335
localResourceConfig.idAttribute
336
])
337
- query.whereExists(subQuery);
+ if (Object.keys(criteria).some(k => k.indexOf('|') > -1)) {
338
+ query.orWhereExists(subQuery);
339
+ } else {
340
+ query.whereExists(subQuery);
341
+ }
342
criteria = null; // criteria handled by EXISTS subquery
343
}
344
0 commit comments