Comparing version 3.1.0 to 3.1.1
@@ -89,3 +89,2 @@ 'use strict'; | ||
case STATE_WAIT_SERVER_KEY: | ||
console.log('Server pub key:', data); | ||
if (pluginOptions.onServerPublicKey) { | ||
@@ -92,0 +91,0 @@ pluginOptions.onServerPublicKey(data); |
@@ -436,15 +436,2 @@ // This file was modified by Oracle on June 1, 2021. | ||
} | ||
if (packet) { | ||
if (this.sequenceId !== packet.sequenceId) { | ||
const err = new Error( | ||
`Warning: got packets out of order. Expected ${this.sequenceId} but received ${packet.sequenceId}` | ||
); | ||
err.expected = this.sequenceId; | ||
err.received = packet.sequenceId; | ||
this.emit('warn', err); // REVIEW | ||
// eslint-disable-next-line no-console | ||
console.error(err.message); | ||
} | ||
this._bumpSequenceId(packet.numPackets); | ||
} | ||
if (this.config.debug) { | ||
@@ -488,2 +475,16 @@ if (packet) { | ||
} | ||
if (packet) { | ||
// Note: when server closes connection due to inactivity, Err packet ER_CLIENT_INTERACTION_TIMEOUT from MySQL 8.0.24, sequenceId will be 0 | ||
if (this.sequenceId !== packet.sequenceId) { | ||
const err = new Error( | ||
`Warning: got packets out of order. Expected ${this.sequenceId} but received ${packet.sequenceId}` | ||
); | ||
err.expected = this.sequenceId; | ||
err.received = packet.sequenceId; | ||
this.emit('warn', err); // REVIEW | ||
// eslint-disable-next-line no-console | ||
console.error(err.message); | ||
} | ||
this._bumpSequenceId(packet.numPackets); | ||
} | ||
const done = this._command.execute(packet, this); | ||
@@ -490,0 +491,0 @@ if (done) { |
{ | ||
"name": "mysql2", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS", | ||
@@ -83,3 +83,2 @@ "main": "index.js", | ||
"husky": "^8.0.2", | ||
"is-async-supported": "^1.2.0", | ||
"lint-staged": "^13.0.3", | ||
@@ -86,0 +85,0 @@ "mocha": "^10.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
499476
23