Permalink
Browse files

Update lib/persistence.store.mysql.js

  • Loading branch information...
jacobmumm committed Nov 18, 2011
1 parent 63d8fda commit 01e87f49446c85b77fdda6dd79e62f0d046e8949
Showing with 7 additions and 6 deletions.
  1. +7 −6 lib/persistence.store.mysql.js
@@ -18,12 +18,13 @@ function log(o) {
exports.config = function(persistence, hostname, port, db, username, password) {
exports.getSession = function(cb) {
var that = {};
- var conn = mysql.createClient();
- conn.host = hostname;
- conn.port = port;
- conn.user = username;
- conn.password = password;
- conn.database = db;
+ var conn = mysql.createClient({
+ host : hostname,
+ port : port,
+ user : username,
+ password : password,
+ database : db
+ });
var session = new persistence.Session(that);
session.transaction = function (explicitCommit, fn) {

0 comments on commit 01e87f4

Please sign in to comment.