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

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);
......
......@@ -11,7 +11,7 @@ var Support = require(__dirname + '/../support')
// Notice: [] will be replaced by dialect specific tick/quote character when there is not dialect specific expectation but only a default expectation
suite(Support.getTestDialectTeaser('SQL'), function() {
suite(Support.getTestDialectTeaser('SQL'), function() {
suite('joinIncludeQuery', function () {
var testsql = function (params, options, expectation) {
if (expectation === undefined) {
......@@ -294,4 +294,4 @@ suite(Support.getTestDialectTeaser('SQL'), function() {
default: "LEFT OUTER JOIN [task] AS [Tasks] ON [Tasks].[user_id] = [User].[alternative_id]"
});
});
});
\ No newline at end of file
});
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!