mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
sqlite - fix fixed statement check
This commit is contained in:
parent
c59c05c693
commit
a94157efe6
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-red-node-sqlite",
|
||||
"version": "0.3.4",
|
||||
"version": "0.3.5",
|
||||
"description": "A sqlite node for Node-RED",
|
||||
"dependencies": {
|
||||
"sqlite3": "^4.0.2"
|
||||
|
@ -86,8 +86,7 @@ module.exports = function(RED) {
|
||||
}
|
||||
if (node.sqlquery == "fixed"){
|
||||
if (typeof node.sql === 'string') {
|
||||
if (msg.payload && msg.payload.length > 0) {
|
||||
bind = Array.isArray(msg.payload) ? msg.payload : [];
|
||||
if (node.sql.length > 0) {
|
||||
node.mydbConfig.db.all(node.sql, bind, function(err, row) {
|
||||
if (err) { node.error(err,msg); }
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user