Skip to content

Commit

Permalink
Ref #4 - rowcounts for inserts and updates
Browse files Browse the repository at this point in the history
  • Loading branch information
grncdr committed Jul 13, 2014
1 parent bdc7706 commit bd36c1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ function PostgresQuery (text, params, callback) {
}
}

PostgresQuery.prototype.handleCommandComplete = function (message) {
this._result.addCommandComplete(message)
this.super_.handleCommandComplete.apply(this, arguments)
}

PostgresQuery.prototype.handleRowDescription = function (message) {
this.super_.handleRowDescription.call(this, message)
this.emit('fields', message.fields)
Expand Down

0 comments on commit bd36c1a

Please sign in to comment.