-
Notifications
You must be signed in to change notification settings - Fork 122
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
Array binding support for filtering parameter #1002
Comments
hi and thank you for submitting this enhancement request, also a possible workaround ! we'll take a look and see how it can be prioritized - it might take a while, so thank you in advance for bearing with us ! in the meantime, additional workaround if it makes sense for your environment, using ARRAY_CONSTRUCT to build the array, which can then conveniently take bind variables: selectQuery := "SELECT ARRAY_CONTAINS('a'::VARIANT, ARRAY_CONSTRUCT(?, ?));"
rows, err := conn.QueryContext(ctx, selectQuery, "a", "b") |
as an initial estimation per current situation, feature can be expected earliest H2 2025 or later (for the Go driver). thank you everyone for bearing with us ! |
My code
What is the current behavior?
We have a non-nil err. Error message is
What is the desired behavior?
This query would complete successfully.
How would this improve
gosnowflake
?It would make the SQL simpler. Currently, we need to change the code like below:
The text was updated successfully, but these errors were encountered: