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

Commit b03f40bd by ThePoloQ

Update query-generator.js

Correction after travis wrong
1 parent bf36239a
Showing with 2 additions and 2 deletions
...@@ -416,7 +416,7 @@ module.exports = (function() { ...@@ -416,7 +416,7 @@ module.exports = (function() {
return this.getTableNameOrder(obj.args) return this.getTableNameOrder(obj.args)
} else if (obj instanceof Utils.col) { } else if (obj instanceof Utils.col) {
return obj.col.split('.')[0] return obj.col.split('.')[0]
} else if ('raw' in obj){ } else if (Utils._.isObject(obj) && 'raw' in obj){
return obj.raw return obj.raw
} else{ } else{
return '' return ''
...@@ -432,7 +432,7 @@ module.exports = (function() { ...@@ -432,7 +432,7 @@ module.exports = (function() {
return obj.fn + '(' + this.getSpecificQuoteOrder(obj.args) + ')' return obj.fn + '(' + this.getSpecificQuoteOrder(obj.args) + ')'
} else if (obj instanceof Utils.col) { } else if (obj instanceof Utils.col) {
return this.quoteIdentifier(obj.col) return this.quoteIdentifier(obj.col)
} else if ('raw' in obj){ } else if (Utils._.isObject(obj) && 'raw' in obj){
return obj.raw return obj.raw
} else{ } else{
return '' return ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!