Skip to content

Commit 4d3e786

Browse files
committed
Use older node API for checking listener length
1 parent 892efef commit 4d3e786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Query.prototype.requiresPreparation = function() {
7070
//metadata used when parsing row results
7171
Query.prototype.handleRowDescription = function(msg) {
7272
this._result.addFields(msg.fields);
73-
this._accumulateRows = this.callback || !this.listenerCount('row');
73+
this._accumulateRows = this.callback || !this.listeners('row').length;
7474
};
7575

7676
Query.prototype.handleDataRow = function(msg) {

0 commit comments

Comments
 (0)