Skip to content

Commit 61d473f

Browse files
authored
Merge pull request #1408 from testn/avoid-argument-adapter
Optimize Query.row call
2 parents 0dd8e16 + c9f2eaa commit 61d473f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/commands/query.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ class Query extends Command {
4444
throw new Error(err);
4545
}
4646

47-
start(packet, connection) {
47+
/* eslint no-unused-vars: ["error", { "argsIgnorePattern": "^_" }] */
48+
start(_packet, connection) {
4849
if (connection.config.debug) {
4950
// eslint-disable-next-line
5051
console.log(' Sending query command: %s', this.sql);
@@ -226,7 +227,8 @@ class Query extends Command {
226227
return this.row;
227228
}
228229

229-
row(packet) {
230+
/* eslint no-unused-vars: ["error", { "argsIgnorePattern": "^_" }] */
231+
row(packet, _connection) {
230232
if (packet.isEOF()) {
231233
const status = packet.eofStatusFlags();
232234
const moreResults = status & ServerStatus.SERVER_MORE_RESULTS_EXISTS;

0 commit comments

Comments
 (0)