Skip to content

Issue with NOT_TAGGED_CALL #304

Answered by porsager
arcuri82 asked this question in Q&A
Discussion options

You must be logged in to vote

@arcuri82 You should use sql.unsafe() for that 😉

Tagged template literals are not simply syntactic sugar, they allow the consuming function to both cache by a static reference to the tagged template literal, and handle the parameters supplied before moving on. This is the specific thing that makes Postgres.js able to call itself safe from SQL injection, and also the reason for the raw string query function being named unsafe 😋

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by arcuri82
Comment options

You must be logged in to vote
0 replies
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