Hi guys, I have an issue that is driving me crazy. In two words: I have a SQLite node that raises a syntax error but the same SQL query works in sqlitebrowser or in the sqlite's cli.
nodered version is 1.2.3
sqlite version: sqlite3 3.27.2 2019-02-25 16:06:06
nodered sqlite node is queuedsqlite
the DB schema is
CREATE TABLE recipe (
ID INTEGER PRIMARY KEY,
rname VARCHAR(255),
heat_6_7 INTEGER,
heat_11_12 INTEGER,
temp INTEGER,
hyst INTEGER,
purge_delay INTEGER,
spray_time INTEGER,
idle_time INTEGER,
n_cycle INTEGER);
The SQL strings pasted to sqlite 's cli was copied from the debug side bar, is:
INSERT INTO recipe (rname, heat_6_7, heat_11_12, temp, hyst, purge_delay, spray_time, idle_time, n_cycle) VALUES ("recipe id 13", 1, 1, 31, 1, 300, 70, 300, 13);
It looks perfect to me, the sqlitebrowser executes and accepts it; but the node complains Error: SQLITE_ERROR: near ";": syntax error
. Moreover actually a new row is created but the error prevents the flow to move to the next node and I can't use it.
Am I misspelling the insert query?