mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
Add result to row event
This makes the `result` object available from the row event.
This commit is contained in:
parent
90d4d2d070
commit
f978cc6379
@ -61,7 +61,7 @@ p.handleDataRow = function(msg) {
|
||||
row[self._fieldNames[i]] = self._fieldConverters[i](rawValue);
|
||||
}
|
||||
}
|
||||
self.emit('row', row);
|
||||
self.emit('row', row, self._result);
|
||||
|
||||
//if there is a callback collect rows
|
||||
if(self.callback) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user