不要怂,就是干,撸起袖子干!

Commit c861485b by Sushant

Fixed issue with subQuery generation flag

1 parent fc78f31b
...@@ -486,6 +486,7 @@ var validateIncludedElements = function(options, tableNames) { ...@@ -486,6 +486,7 @@ var validateIncludedElements = function(options, tableNames) {
include.subQuery = false; include.subQuery = false;
} else { } else {
include.subQueryFilter = false; include.subQueryFilter = false;
include.subQuery = include.subQuery || (include.hasParentRequired && include.hasRequired);
} }
} }
......
...@@ -2081,9 +2081,7 @@ describe(Support.getTestDialectTeaser('Model'), function() { ...@@ -2081,9 +2081,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
return this.UserWithFields.bulkCreate([ return this.UserWithFields.bulkCreate([
{age: 2, gender: 'male'}, {age: 2, gender: 'male'},
{age: 3, gender: 'female'} {age: 3, gender: 'female'}
], { ]).bind(this).then(function() {
logging: console.log
}).bind(this).then(function() {
return expect(this.UserWithFields.sum('age', { return expect(this.UserWithFields.sum('age', {
where: { 'gender': 'male' } where: { 'gender': 'male' }
})).to.eventually.equal(2); })).to.eventually.equal(2);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!