We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 892efef commit 4d3e786Copy full SHA for 4d3e786
lib/query.js
@@ -70,7 +70,7 @@ Query.prototype.requiresPreparation = function() {
70
//metadata used when parsing row results
71
Query.prototype.handleRowDescription = function(msg) {
72
this._result.addFields(msg.fields);
73
- this._accumulateRows = this.callback || !this.listenerCount('row');
+ this._accumulateRows = this.callback || !this.listeners('row').length;
74
};
75
76
Query.prototype.handleDataRow = function(msg) {
0 commit comments