WindmillWWindmill
Powered by
jase64J
Windmill•2y ago•
5 replies
jase64

How to pass parameters to SQL query?

In a postgres SQL query like
SELECT * FROM <tablename> WHERE id in $1
where $1 is a list of ids I got constantly the error
{
"error": {
"name": "ExecutionErr",
"message": "error during execution of the script:
db error: ERROR: syntax error at or near "$1""
}
}
So I tried to enforce $1 to be a string with "$1:TEXT" with same result.
Any idea what I'm missing here ?
WindmillJoin
3,388Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

We're live here https://discord.com/channels/930051556043276338/1278977038430240813

henri-c · 6d ago

rubenf

Infrastructure as code

rubenf · 4w ago

rubenf

As we're preparing for a new Windmill sandbox SDK, we took the opportunity **to open-source NSJAIL sandboxing** and make it available in CE and easier to set. In 1.634.0, just set nsjail to benefit from the tightest security and isolation per job. It's constraining so no need to use it unless you need but now you won't be restricted in security for CE if you need to.

rubenf · 4w ago

Similar Threads

How to pass sql query parameter
Ask InkeepAAsk Inkeep / help
2y ago
Script to hub: How to pass in Ressources?
gsloneGgslone / help
2y ago
Settings to optimize for large SQL queries?
BestCareAnyLeaBBestCareAnyLea / help
2y ago
Pass environment variables to `uv pip install`
tl_jacobTtl_jacob / help
10mo ago