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

Added support for raw queries to handle parameters

1 parent 6c06ac2a
Showing with 4 additions and 1 deletions
......@@ -133,7 +133,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!