Skip to content

Error when I try to INSERT INTO #41

Answered by Alkarex
FlorianBfr asked this question in Q&A
Discussion options

You must be logged in to vote

In addition to missing the single quotes around your strings, it looks like you did not refer to the right object.
In your case, I believe it should be something like '{{{msg.payload.device}}}'
Check the doc https://github.com/alexandrainst/node-red-contrib-postgresql/blob/main/README.md

When in doubt, you can also skip completely the templating and generate the full query completely by hand, referring to it via {{{ msg.payload }}}

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@FlorianBfr
Comment options

Answer selected by FlorianBfr
Comment options

You must be logged in to vote
2 replies
@Alkarex
Comment options

@Alkarex
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants