Skip to content

Commit bc10263

Browse files
committed
Alias 'this' because we're in a closure
1 parent f688579 commit bc10263

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/dialect/postgres.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ Postgres.prototype._getParameterValue = function(value, quoteChar) {
4141
} else if ('object' === typeof value) {
4242
if (_.isArray(value)) {
4343
// convert each element of the array
44+
var self = this;
4445
value = value.map(function (item) {
4546
// In a Postgres array, strings must be double-quoted
46-
return this._getParameterValue(item, '"');
47+
return self._getParameterValue(item, '"');
4748
});
4849
value = '\'{' + value.join(',') + '}\'';
4950
} else if (_.isFunction(value.toISOString)) {

0 commit comments

Comments
 (0)