Skip to content

Commit

Permalink
Was calling the postgres query thinger incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbellamy committed Feb 14, 2012
1 parent dcc3166 commit 58faff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/postgres.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 58faff5

Please sign in to comment.