Add aliases for some properties

This commit is contained in:
Raymond Feng 2013-08-21 13:37:01 -07:00
parent a06f4e5289
commit dfa995eb17
1 changed files with 2 additions and 2 deletions

View File

@ -22,9 +22,9 @@ exports.initialize = function initializeDataSource(dataSource, callback) {
s.timezone = (s.timezone || 'local'); s.timezone = (s.timezone || 'local');
dataSource.client = mysql.createConnection({ dataSource.client = mysql.createConnection({
host: s.host || 'localhost', host: s.host || s.hostname || 'localhost',
port: s.port || 3306, port: s.port || 3306,
user: s.username, user: s.username || s.user,
password: s.password, password: s.password,
timezone: s.timezone, timezone: s.timezone,
debug: s.debug, debug: s.debug,