Permalink
Browse files

Was calling the postgres query thinger incorrectly

  • Loading branch information...
1 parent dcc3166 commit 58faff5e7179e095189351903e97c27700d7972e @paulbellamy committed Feb 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/postgres.js
View
@@ -52,7 +52,7 @@ PostgresHook.prototype._start = function() {
PostgresHook.prototype._query = function(sql, callback) {
var self = this;
- var query = self.client.apply(sql); // handle strings, arrays, or objects with apply
+ var query = self.client.query.apply(self.client, [sql]); // handle strings, arrays, or objects with apply
var rows = [];
query.on('row', function(row) {

0 comments on commit 58faff5

Please sign in to comment.