Skip to content

Commit f978cc6

Browse files
committed
Add result to row event
This makes the `result` object available from the row event.
1 parent 90d4d2d commit f978cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/query.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ p.handleDataRow = function(msg) {
6161
row[self._fieldNames[i]] = self._fieldConverters[i](rawValue);
6262
}
6363
}
64-
self.emit('row', row);
64+
self.emit('row', row, self._result);
6565

6666
//if there is a callback collect rows
6767
if(self.callback) {

0 commit comments

Comments
 (0)