Open powibol opened 6 months ago
I don't understand your question. Where is the value being passed in for the parameter $1. Can you please write out the entire javascript instead of just the sql part?
I could be wrong but I feel you trying to ask a generic PostgreSQL question? If so you should be asking ask on the PostgreSQL mailing list or their slack channel. This is the repo for "postgres.js" , a javascript client library for PostgreSQL.
Hi all,
I am looking for the right way to escape
$1, $2,...
, when used inside aCREATE FUNCTION
statement.As a minimal example, let's say we have this query in a file:
How should I escape
$$
and$1
in this example?Thank you a lot in advance for your help!