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

Commit 8a1539a6 by Sascha Depold

Merge pull request #344 from guilhermef/master

Using options.type to define query type
2 parents 7d681b31 8671427a
Showing with 1 additions and 1 deletions
...@@ -139,7 +139,7 @@ module.exports = (function() { ...@@ -139,7 +139,7 @@ module.exports = (function() {
} }
options = Utils._.extend(Utils._.clone(this.options.query), options) options = Utils._.extend(Utils._.clone(this.options.query), options)
options = Utils._.extend(options, { options = Utils._.defaults(options, {
logging: this.options.hasOwnProperty('logging') ? this.options.logging : console.log, logging: this.options.hasOwnProperty('logging') ? this.options.logging : console.log,
type: (sql.toLowerCase().indexOf('select') === 0) ? 'SELECT' : false type: (sql.toLowerCase().indexOf('select') === 0) ? 'SELECT' : false
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!