Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed ignored connection errors for mysql alpha 2.0 driver

  • Loading branch information...
commit 9dbb59a57e61eb2e74479ca297f5984481661be7 1 parent 24cb276
@andrzejpolis andrzejpolis authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/drivers/mysql.js
View
3  lib/drivers/mysql.js
@@ -100,11 +100,12 @@ var MySqlDriver = Driver.extend({
callback(null, conn);
} else {
db = new mysql.createConnection(opts);
+ var _this = this;
db.connect(function(err) {
if (err) {
callback(err);
} else {
- conn = new MySqlConnection(this, db, true, opts);
+ conn = new MySqlConnection(_this, db, true, opts);
callback(null, conn);
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.