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

You need to sign in or sign up before continuing.
Commit 99d0adc3 by Sohum Banerjea

this.escape isn't bound in these maps, so this.dialect was undefined

1 parent c057c662
Showing with 2 additions and 2 deletions
...@@ -173,10 +173,10 @@ module.exports = (function() { ...@@ -173,10 +173,10 @@ module.exports = (function() {
} }
} }
if ( col && ((!!coltype && coltype.match(/\[\]$/) !== null) || (col.toString().match(/\[\]$/) !== null))) { if ( col && ((!!coltype && coltype.match(/\[\]$/) !== null) || (col.toString().match(/\[\]$/) !== null))) {
_value = 'ARRAY[' + value.map(this.escape).join(',') + ']::' + (!!col.type ? col.type : col.toString()) _value = 'ARRAY[' + value.map(this.escape.bind(this)).join(',') + ']::' + (!!col.type ? col.type : col.toString())
return [_key, _value].join(" && ") return [_key, _value].join(" && ")
} else { } else {
_value = "(" + value.map(this.escape).join(',') + ")" _value = "(" + value.map(this.escape.bind(this)).join(',') + ")"
return [_key, _value].join(" " + logicResult + " ") return [_key, _value].join(" " + logicResult + " ")
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!