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

Commit 3f2e7322 by Sascha Depold

don't relu on callee + passed results

1 parent c75ff9ef
Showing with 2 additions and 2 deletions
......@@ -141,10 +141,10 @@ module.exports = (function() {
}
var isInsertQuery = function(results) {
var result = !!this.callee
var result = true
result = result && (this.sql.toLowerCase().indexOf('insert into') === 0)
result = result && !!results && results.hasOwnProperty('insertId')
result = result && (!results || results.hasOwnProperty('insertId'))
return result
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!