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

Commit c861485b by Sushant

Fixed issue with subQuery generation flag

1 parent fc78f31b
......@@ -486,6 +486,7 @@ var validateIncludedElements = function(options, tableNames) {
include.subQuery = false;
} else {
include.subQueryFilter = false;
include.subQuery = include.subQuery || (include.hasParentRequired && include.hasRequired);
}
}
......
......@@ -2081,9 +2081,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
return this.UserWithFields.bulkCreate([
{age: 2, gender: 'male'},
{age: 3, gender: 'female'}
], {
logging: console.log
}).bind(this).then(function() {
]).bind(this).then(function() {
return expect(this.UserWithFields.sum('age', {
where: { 'gender': 'male' }
})).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!