Comparing version 0.2.2-pre to 0.2.3-pre
@@ -137,3 +137,8 @@ /** | ||
var config = this.config; | ||
this.client = mysql.createConnectionSync(config.host, config.user, config.password, config.database, config.port); | ||
this.client = mysql.createConnectionSync(); | ||
this.client.initSync(); | ||
if (config.charset) { | ||
this.client.setOptionSync(mysql.MYSQL_SET_CHARSET_NAME, config.charset); | ||
} | ||
this.client.realConnectSync(config.host, config.user, config.password, config.database, config.port); | ||
if (config.database) { | ||
@@ -140,0 +145,0 @@ this.client.query('USE '+config.database); |
@@ -476,2 +476,3 @@ var _ = require('lodash'); | ||
for (key in obj) { | ||
if (!obj.hasOwnProperty(key)) continue; | ||
if (columns.indexOf(key) > -1) | ||
@@ -478,0 +479,0 @@ keys.push(key) |
{ | ||
"name": "mapper", | ||
"version": "0.2.2-pre", | ||
"version": "0.2.3-pre", | ||
"description": "Lightweight, blazing fast ODM on top of mysql-libmysqlclient.", | ||
@@ -20,3 +20,3 @@ "tags" : ["odm", "mysql", "mysql-libmysqlclient"], | ||
"devDependencies": { | ||
"mysql": "2.0.0-alpha3", | ||
"mysql": "2.0.0-alpha5", | ||
"mocha": "~1.2.2", | ||
@@ -23,0 +23,0 @@ "chai": "~0.5.3", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
130319
3971