From f978cc637929af57b64b7bfa7a9001ae1866cdef Mon Sep 17 00:00:00 2001 From: Cameron Howey Date: Mon, 26 Mar 2012 09:05:34 -0400 Subject: [PATCH] Add `result` to row event This makes the `result` object available from the row event. --- lib/query.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/query.js b/lib/query.js index 3d5dfc08..c7fadeec 100644 --- a/lib/query.js +++ b/lib/query.js @@ -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) {