I can't seem to get the syntax correct for writing an integer into a PostgreSQL table using the postgrestor node getting data from a JSON string.
Here's my query for a string that works fine:
INSERT INTO table2 (field1) VALUES ('{{msg.payload.UnitName}}');
Per the postgrestor help file it seems that for an integer I should just remove the singe quotes, but when I run this:
INSERT INTO table2 (field2) VALUES ({{msg.payload.din1}});
I get this error:
"error: syntax error at or near ")""
Any ideas what the correct syntax might be for working with an integer?