Skip to content

Commit

Permalink
Fix 'undefined is not a function' problem at postgres adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
netsgnut committed Apr 11, 2012
1 parent 6be57cf commit f16d057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/postgres.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ PG.prototype.query = function (sql, callback) {
var time = Date.now();
var log = this.log;
this.client.query(sql, function (err, data) {
log(sql, time);
if (log) log(sql, time);
callback(err, data ? data.rows : null);
});
};
Expand Down

0 comments on commit f16d057

Please sign in to comment.