From dfa995eb17fac50f2beb25a2b54f436e4d646366 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 21 Aug 2013 13:37:01 -0700 Subject: [PATCH] Add aliases for some properties --- lib/mysql.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mysql.js b/lib/mysql.js index 32c1aaa..7fabe86 100644 --- a/lib/mysql.js +++ b/lib/mysql.js @@ -22,9 +22,9 @@ exports.initialize = function initializeDataSource(dataSource, callback) { s.timezone = (s.timezone || 'local'); dataSource.client = mysql.createConnection({ - host: s.host || 'localhost', + host: s.host || s.hostname || 'localhost', port: s.port || 3306, - user: s.username, + user: s.username || s.user, password: s.password, timezone: s.timezone, debug: s.debug,