Permalink
Browse files

Follow mysql@2.0.0 Query "result" event, still handling old Query "ro…

…w" event
  • Loading branch information...
1 parent 74a6d41 commit 0555a4f38020e6c688c53a23e2bc8235413b8d4a @dresende committed Oct 8, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/databases/helpers.js
View
5 lib/databases/helpers.js
@@ -12,6 +12,11 @@ function DBQuery(query) {
o.emit("record", row);
};
})(this));
+ query.on("result", (function (o) {
+ return function (row) {
+ o.emit("record", row);
+ };
+ })(this));
query.on("end", (function (o) {
return function (res) {
o.emit("end", res);

0 comments on commit 0555a4f

Please sign in to comment.