Merge pull request #61 from netsgnut/fix-pg-log

Fix 'undefined is not a function' problem at postgres adapter
This commit is contained in:
Anatoliy Chakkaev 2012-04-11 12:10:01 -07:00
commit a02fbbb4df
1 changed files with 1 additions and 1 deletions

View File

@ -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);
});
};