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

Commit 6e2ae509 by Petar Koretić Committed by Jan Aagaard Meier

don't format raw 'update' statement result

response to issue 3795
1 parent cf72ccd4
Showing with 1 additions and 5 deletions
......@@ -154,11 +154,7 @@ module.exports = (function() {
};
AbstractQuery.prototype.isUpdateQuery = function() {
if (this.options.type === QueryTypes.UPDATE) {
return true;
}
return (this.sql.toLowerCase().indexOf('update') === 0);
return this.options.type === QueryTypes.UPDATE;
};
AbstractQuery.prototype.handleSelectQuery = function(results) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!