Hi Everyone,
I'm trying to build a workflow and fetching some data from my Postgres table.
This is what my query looks like:
This is what it looks like after evaluating:
For some reason this returns nothing, but if I take this evaluated query into DataGrip and run it against my DB, it will return rows.
What is wrong with this?
Get Transaction Report.json (24.7 KB)
See Below, my data grip results:
Hey @jeevenugo
Could you please try removing the double quotes from the query, so it reads t.transactiondate
instead of t."transactiondate"
?
Have you tried like this?
1 Like
Have you checked if prepared statements are enabled or not?
some times because of that its not working.
1 Like
I believe it is an issue with the brackets around the cardList
@Tess @Darren
Tess
January 10, 2025, 12:26am
7
Hi @jeevenugo Please see this doc: SQL Cheatsheet - best practices for different flavors of SQL syntax
Postgres uses = ANY()
syntax in Retool
Assuming prepared statements are enabled and cardList is an array, it should work with just t.cardnumber = ANY({{startTrigger.data.cardList}})