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
|
-
//
|
|
48
|
-
connection._statements.
|
|
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;
|