Hey there! It looks like select_table.value might be returning an array versus a single value. Are you certain that select_table is a reference to a Select component?
It looks like the Select component is returning the correct value however the value is wrapped in quotes. This can be seen in the image below. Any idea how to approach this?
Hello, Yes, I do have them enabled and did also disable them and updated the query but it yielded the same results unfortunately. Maybe my approach is wrong?
Any input from the retool team or community would be greatly appreciated.
I helped someone out on the Retool Discord earlier today, and he was having similar issues, so here's a list of the things we checked and tried before getting things working:
Make sure your resource (looks like a Postgres DB) has the Disable converting queries to prepared statements option turned ON
try using a different table alias name instead of db, because db is technically a reserved word in postgres
try not using a table alias since you know the column is the same regardless of table
make sure your values are wrapped in quotes if they are string types
fully restart chrome after changing the prepared statements setting to ensure prepared queries are DISABLED. All of the errors you've posted so far indicate that prepared queries are still enabled. This approach will definitely not work with prepared queries turned on.
Here's a screenshot of working minimal reproduction of your setup. I'm using the Retool DB which is also Postgres to do this: