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

Commit 0209b3c9 by Sascha Depold

don't nest the tables with the mysql connector

1 parent ae0cd7d0
Showing with 1 additions and 2 deletions
...@@ -27,7 +27,7 @@ module.exports = (function() { ...@@ -27,7 +27,7 @@ module.exports = (function() {
this.options.logging('Executing: ' + this.sql) this.options.logging('Executing: ' + this.sql)
} }
this.client.query({ sql: this.sql, nestTables: true }, function(err, results, fields) { this.client.query(this.sql, function(err, results, fields) {
this.emit('sql', this.sql) this.emit('sql', this.sql)
if (err) { if (err) {
...@@ -57,7 +57,6 @@ module.exports = (function() { ...@@ -57,7 +57,6 @@ module.exports = (function() {
var onSuccess = function(results, fields) { var onSuccess = function(results, fields) {
unbindClient.call(this) unbindClient.call(this)
this.emit('success', this.formatResults(results)) this.emit('success', this.formatResults(results))
} }
var onFailure = function(err) { var onFailure = function(err) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!