Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix 'undefined is not a function' problem at postgres adapter #61

Merged
merged 1 commit into from Apr 11, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
View
@@ -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);
});
};