Skip to content

Postgres Node fails multiple insert statements with parameterized inputs #30

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

You must be logged in to vote

Hello and sorry for the delay. I do not believe PostgreSQL supports this syntax. However, it should work with a little twist, grouping your queries in a WITH ... AS statement: https://www.postgresql.org/docs/current/queries-with.html

Alternatively, you could consider our (less safe) Mustache-based query template syntax https://github.com/alexandrainst/node-red-contrib-postgresql#sql-query-template

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Alkarex
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
Converted from issue

This discussion was converted from issue #28 on December 15, 2022 12:06.