You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module.exports = function inherits(ctor, superCtor) {
14476
-
ctor.super_ = superCtor
14477
-
var TempCtor = function () {}
14478
-
TempCtor.prototype = superCtor.prototype
14479
-
ctor.prototype = new TempCtor()
14480
-
ctor.prototype.constructor = ctor
14481
+
if (superCtor) {
14482
+
ctor.super_ = superCtor
14483
+
var TempCtor = function () {}
14484
+
TempCtor.prototype = superCtor.prototype
14485
+
ctor.prototype = new TempCtor()
14486
+
ctor.prototype.constructor = ctor
14487
+
}
14481
14488
}
14482
14489
}
14483
14490
@@ -15798,8 +15805,11 @@ class Profiler {
15798
15805
}
15799
15806
}
15800
15807
15801
-
setVersion(version) {
15802
-
this.version = version;
15808
+
setVersion({ versionPrefix, version }) {
15809
+
if (version.startsWith('8.0.') && versionPrefix === 'MySQL') {
15810
+
this.logger.error('[mysql-async] [Warning] It is recommended to run MySQL 5 or MariaDB with mysql-async. You may experience performance issues under load by using MySQL 8.');
0 commit comments