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

You need to sign in or sign up before continuing.
Commit 0e3c0c19 by sdepold

return raw data if query begins with 'DESCRIBE'

1 parent ecfc82a8
Showing with 1 additions and 1 deletions
...@@ -76,7 +76,7 @@ module.exports = (function() { ...@@ -76,7 +76,7 @@ module.exports = (function() {
result = (result.length == 0) ? null : result[0] result = (result.length == 0) ? null : result[0]
} }
if(this.sql.indexOf('SHOW') == 0) if((this.sql.indexOf('SHOW') == 0) || (this.sql.indexOf('DESCRIBE') == 0))
result = results result = results
unbindClient.call(this) unbindClient.call(this)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!