mysql2 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,8 +44,8 @@ class ChangeUser extends Command {
44
44
  this.currentConfig.database = this.database;
45
45
  this.currentConfig.charsetNumber = this.charsetNumber;
46
46
  connection.clientEncoding = CharsetToEncoding[this.charsetNumber];
47
- // reset prepared statements cache as all statements become invalid after changeUser
48
- connection._statements.reset();
47
+ // clear prepared statements cache as all statements become invalid after changeUser
48
+ connection._statements.clear();
49
49
  connection.writePacket(newPacket.toPacket());
50
50
  // check if the server supports multi-factor authentication
51
51
  const multiFactorAuthentication = connection.serverCapabilityFlags & ClientConstants.MULTI_FACTOR_AUTHENTICATION;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysql2",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
5
5
  "main": "index.js",
6
6
  "directories": {