-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL query with bindings for IN
values no longer work
#4978
Comments
IN
values no longer work
Hi @micebrain - could you provide an example of your query to test? |
Hi @mike12345567 sure, it's actually pretty simple. Here is the screenshot of the configured query |
Hi @micebrain - can you try this query without the parentheses around the binding e.g. I will see if Budibase can detect that they've already been included in the query and not add them if they are already there - but I think removing them should fix your query. |
Hi @mike12345567 |
A change in the way SQL parameters work has made the SQL
... WHERE something IN {{ values }}
impossible.Original poster reported in MySQL, and I reproduced in Postgres
Discussed in #4963
Originally posted by micebrain March 19, 2022
Hi,
I updated my app to v1.0.90 and found that SQL queries that has value binding to integer column is giving error:
I figured out that this only happened to queries that uses the
in
expression with multiple values. And example of the query is something likewith the
customer_ids = 1,2
My expectation of the template output would be
But the error message seems to indicate that it is now rendering as
How can I change this behaviour?
The text was updated successfully, but these errors were encountered: