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
We're looking at upgrading from a custom built 2.0.11 version of Npgsql to the latest and greatest and we ran in to this issue:
var comm = conn.CreateCommand(); comm.CommandText = "SELECT :something"; comm.Parameters.AddWithValue("something", new[] { 1, 2, 3 }.Select(x => x)); //Parameter is an IEnumerable<int> var res = comm.ExecuteScalar();
Previously this would work, now it generates invalid SQL for the parameter.
Bad (IEnumerable): SELECT (('[1,2,3]')::int4[]) Good (Using an Array): SELECT (('{1,2,3}')::int4[])
I might take a quick look through to see if I can fix this, no promises however :)
The text was updated successfully, but these errors were encountered:
We had a lot of changes about array handling. I think we may have break something... :( Sorry for that.
I'll have a look at this.
Thanks for your feedback!
Sorry, something went wrong.
Add a test for IEnumerable<int> as a parameter. refs npgsql#222
57f5202
Always use Curly braces here (matches the WriteArray method), fixes n…
cf8dd2c
…pgsql#222
No branches or pull requests
We're looking at upgrading from a custom built 2.0.11 version of Npgsql to the latest and greatest and we ran in to this issue:
Previously this would work, now it generates invalid SQL for the parameter.
I might take a quick look through to see if I can fix this, no promises however :)
The text was updated successfully, but these errors were encountered: