Skip to content

Commit f9b4d2e

Browse files
authored
Sqlite3 fix (#872)
* Reset bind if msg.payload not an array
1 parent 3d750a5 commit f9b4d2e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

storage/sqlite/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-node-sqlite",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A sqlite node for Node-RED",
55
"dependencies": {
66
"sqlite3": "^5.0.2"

storage/sqlite/sqlite.js

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ module.exports = function(RED) {
5050
var bind = [];
5151

5252
var doQuery = function(msg) {
53+
bind = []
5354
if (node.sqlquery == "msg.topic") {
5455
if (typeof msg.topic === 'string') {
5556
if (msg.topic.length > 0) {

0 commit comments

Comments
 (0)