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

You need to sign in or sign up before continuing.
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() {
return this.getTableNameOrder(obj.args)
} else if (obj instanceof Utils.col) {
return obj.col.split('.')[0]
} else if ('raw' in obj){
} else if (Utils._.isObject(obj) && 'raw' in obj){
return obj.raw
} else{
return ''
......@@ -432,7 +432,7 @@ module.exports = (function() {
return obj.fn + '(' + this.getSpecificQuoteOrder(obj.args) + ')'
} else if (obj instanceof Utils.col) {
return this.quoteIdentifier(obj.col)
} else if ('raw' in obj){
} else if (Utils._.isObject(obj) && 'raw' in obj){
return obj.raw
} else{
return ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!