Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Aug 25, 2020
1 parent bb07f7c commit 0bba4e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/adapter-knex/lib/adapter-knex.js
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,8 @@ class QueryBuilder {
);
}

// Ensure there there whereIn/whereNotIn query is run against
// a table with exactly one column.
const subSubQuery = listAdapter.parentAdapter.knex.raw(
`SELECT "${selectCol}" FROM (${subQuery}) AS unused_alias`
);
Expand Down

0 comments on commit 0bba4e2

Please sign in to comment.