Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #91 from acekat/patch-1
Browse files Browse the repository at this point in the history
Missing changes relative to #fc03cf3
  • Loading branch information
particlebanana committed Jun 6, 2016
2 parents 95b0a08 + 4d55945 commit dd14f46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sequel/where.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,11 @@ WhereBuilder.prototype.complex = function complex(queryObject, options) {
// Find the projection in the schema and make sure it's a valid key
// that can be selected.
var schema = self.schema[projection.table];
if(!schema) {
if(!schema || !schema.definition) {
return;
}

var schemaVal = schema[projection.key];
var schemaVal = schema.definition[projection.key];
if(!schemaVal) {
return;
}
Expand Down

0 comments on commit dd14f46

Please sign in to comment.