Skip to content

Commit

Permalink
Fix _warningCounts initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
KunZhou-at committed Oct 17, 2023
1 parent 479fa03 commit 7c6b89b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/commands/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class Query extends Command {
}
this._rows.push(rs);
this._fields.push(void 0);
this._warningCounts.push(void 0);
this.emit('fields', void 0);
this.emit('result', rs);
if (rs.serverStatus & ServerStatus.SERVER_MORE_RESULTS_EXISTS) {
Expand Down Expand Up @@ -135,6 +136,7 @@ class Query extends Command {
this._receivedFieldsCount = 0;
this._rows.push([]);
this._fields.push([]);
this._warningCounts.push(0);
return this.readField;
}

Expand Down

0 comments on commit 7c6b89b

Please sign in to comment.