We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After reading about array binding: https://github.com/snowflakedb/snowflake-connector-net#bind-array-variables I thought I'd try and use array binding to paramterise an IN clause:
I get an exception - "Bind variable ? not set"
using (var cmd = conn.CreateCommand()) { List<string> myValues = new List<string>() { "KZ", "KR" }; cmd.CommandText = "SELECT FOO FROM BAR WHERE FOO IN (?)"; var p1 = cmd.CreateParameter(); p1.ParameterName = "1"; p1.DbType = DbType.String; p1.Value = myValues .ToArray(); cmd.Parameters.Add(p1); using (var reader = cmd.ExecuteReader()) { while (reader.Read())
Perhaps this could be supported?
snowflake-connector-net
Make it easier to paramaterise queries with In clauses.
The text was updated successfully, but these errors were encountered:
hi - i think we can use #169 to track this requirement for VARIANT (and ARRAY) binding, but if this is something entirely different please let me know
Sorry, something went wrong.
sfc-gh-dszmolka
No branches or pull requests
What is the current behavior?
After reading about array binding: https://github.com/snowflakedb/snowflake-connector-net#bind-array-variables
I thought I'd try and use array binding to paramterise an IN clause:
I get an exception - "Bind variable ? not set"
What is the desired behavior?
Perhaps this could be supported?
How would this improve
snowflake-connector-net
?Make it easier to paramaterise queries with In clauses.
References, Other Background
What is your Snowflake account identifier, if any?
The text was updated successfully, but these errors were encountered: