Permalink
Browse files

Fixed error affecting mysql 2.0.0-alpha3 driver. Closes #44

  • Loading branch information...
1 parent e2d55d1 commit 84e84ae6fa296fd2ff8398109748b2c67147f4e8 @kunklejr kunklejr committed Aug 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/driver/mysql.js
View
@@ -107,8 +107,8 @@ var MysqlDriver = Base.extend({
exports.connect = function(config, callback) {
var db;
- if (typeof(mysql.createConnection === 'undefined')) {
- db = config.db || new mysql.createClient(config);
+ if (typeof(mysql.createConnection) === 'undefined') {
+ db = config.db || new mysql.createClient(config);
} else {
db = config.db || new mysql.createConnection(config);
}

0 comments on commit 84e84ae

Please sign in to comment.