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

Commit da94e850 by Mick Hansen

Merge pull request #1197 from oubushixb/patch-1

findAndCountAll do not support {raw:true} option
2 parents 610a2c43 8ef768dc
Showing with 2 additions and 2 deletions
......@@ -545,7 +545,7 @@ module.exports = (function() {
return this.QueryInterface.rawSelect(this.getTableName(), options, 'count')
}
DAOFactory.prototype.findAndCountAll = function(options) {
DAOFactory.prototype.findAndCountAll = function(options, queryOptions) {
var self = this
// no limit, offset, order, attributes or include for the options given to count()
, copts = Utils._.omit(options || {}, ['offset', 'limit', 'order', 'include', 'attributes'])
......@@ -574,7 +574,7 @@ module.exports = (function() {
return emit.okay(cnt) // no records, no need for another query
}
self.findAll(options)
self.findAll(options, queryOptions)
.on('sql', emit.sql)
.error(emit.err)
.success(function(rows) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!