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

Commit aaa3d972 by José Moreira

Tabs to Spaces

1 parent f23cdeb0
Showing with 5 additions and 5 deletions
...@@ -750,11 +750,11 @@ module.exports = (function() { ...@@ -750,11 +750,11 @@ module.exports = (function() {
// Creating the as-is where for the subQuery, checks that the required association exists // Creating the as-is where for the subQuery, checks that the required association exists
options.where["__"+throughAs] = self.sequelize.asIs([ '(', options.where["__"+throughAs] = self.sequelize.asIs([ '(',
"SELECT " + self.quoteIdentifier( throughAs ) + "." + self.quoteIdentifier( identSource ) + " FROM " + self.quoteTable(throughTable, throughAs), "SELECT " + self.quoteIdentifier( throughAs ) + "." + self.quoteIdentifier( identSource ) + " FROM " + self.quoteTable(throughTable, throughAs),
! include.required && joinType + self.quoteTable( association.source.tableName, tableSource ) + " ON " + sourceJoinOn || '', ! include.required && joinType + self.quoteTable( association.source.tableName, tableSource ) + " ON " + sourceJoinOn || '',
joinType + self.quoteTable( table, as ) + " ON " + targetJoinOn, joinType + self.quoteTable( table, as ) + " ON " + targetJoinOn,
"WHERE " + ( ! include.required && targetWhere || sourceJoinOn + " AND " + targetWhere ), "WHERE " + ( ! include.required && targetWhere || sourceJoinOn + " AND " + targetWhere ),
"LIMIT 1", "LIMIT 1",
')', 'IS NOT NULL'].join(' ')) ')', 'IS NOT NULL'].join(' '))
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!