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

Commit a377f267 by Sascha Depold

Merge branch 'raw-query-parameters' of git://github.com/kozze89/sequelize into k…

…ozze89-raw-query-parameters
2 parents f2eb98a3 8c0693cd
Showing with 4 additions and 1 deletions
......@@ -141,7 +141,10 @@ module.exports = (function() {
}
Sequelize.prototype.query = function(sql, callee, options) {
if (arguments.length === 3) {
if (arguments.length === 4) {
values.unshift(sql)
sql = Utils.format(values)
} else if (arguments.length === 3) {
options = options
} else if (arguments.length === 2) {
options = {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!