Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed an incorrect usage of the new node-mysql API

  • Loading branch information...
commit cc6bce266d91cb4e118212705fd4d6ad7a89f187 1 parent 1cb75f5
John Hurliman authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/database.js
4 lib/database.js
View
@@ -1,6 +1,6 @@
var poolModule = require('generic-pool');
-var mysqlClient = require('mysql').createClient();
+var mysql = require('mysql');
var pool = null;
@@ -11,7 +11,7 @@ exports.init = function(dbUser, dbPass, dbDatabase, dbHost, dbPort) {
pool = poolModule.Pool({
name : 'mysql',
create : function(callback) {
- var c = new mysqlClient();
+ var c = mysql.createClient();
if (dbUser) c.user = dbUser;
if (dbPass) c.password = dbPass;
if (dbDatabase) c.database = dbDatabase;
Please sign in to comment.
Something went wrong with that request. Please try again.