Hello there,
I have a very simple flow - I am getting a couple of rows of data and want to insert this into a database (mariadb). For the first part it is a simple “HTTP request” and the second I am using the MySQL node.
I failed to make the MySQL node working through all 7 items (it always injects all 7 into the first db), so I switched to “Execute Query” and entered an expression which eats the tablename and the to be added value from the previous node.
It currently fails with the following error message:
ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INSERT INTO
table1 (
value) VALUES ('35137.56')' at line 1
If I check the table - the data has been entered. The query is running correct in another tool.
Query which is being used
as expression:
INSERT INTO `{{$node["HTTP Request"].json["name"]}}` (`value`) VALUES ('{{$node["HTTP Request"].json["value"]}}')
INSERT INTO `table1` (`value`) VALUES ('35137.56')
I cannot understand why it is telling me that there is an error - can you help me?
N8N - latest version, running on ARM / dockered environment.
Mariadb is at version 5.5.68-MariaDB