node-red-node-mysql
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -86,3 +86,3 @@ | ||
this.on('close', function(done) { | ||
this.on('close', function (done) { | ||
if (this.tick) { clearTimeout(this.tick); } | ||
@@ -132,3 +132,3 @@ if (this.check) { clearInterval(this.check); } | ||
else if (typeof msg.payload === 'object' && msg.payload !== null) { | ||
bind=msg.payload; | ||
bind = msg.payload; | ||
node.mydbConfig.connection.config.queryFormat = function(query, values) { | ||
@@ -153,3 +153,3 @@ if (!values) { | ||
else { | ||
if ( (rows.constructor.name === "OkPacket") || (rows.constructor.name === "Array")) { | ||
if ((rows.constructor.name === "OkPacket") || (rows.constructor.name === "Array")) { | ||
msg.payload = JSON.parse(JSON.stringify(rows)); | ||
@@ -162,5 +162,5 @@ } | ||
} | ||
if (node.mydbConfig.pool._freeConnections.indexOf(node.mydbConfig.connection) === -1) { | ||
node.mydbConfig.connection.release(); | ||
} | ||
// if (node.mydbConfig.pool._freeConnections.indexOf(node.mydbConfig.connection) === -1) { | ||
// node.mydbConfig.connection.release(); | ||
// } | ||
}); | ||
@@ -167,0 +167,0 @@ } |
{ | ||
"name": "node-red-node-mysql", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A Node-RED node to read and write to a MySQL database", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
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
14910