-
Notifications
You must be signed in to change notification settings - Fork 819
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
Using NpgsqlParameter with empty value throws ArgumentNullException #5446
Comments
I encountered the same problem using nlog to write logs to the database, which was normal in 7.0.6. |
same problem using QueryOver |
@kbogun thanks for your report. I noticed in your stacktrace you're running on an older TFM for which we unfortunately don't have good CI coverage. And indeed the cause of this issue is in the polyfills we're using on .NET Standard builds where we don't have System.Text.Encoding methods taking spans. I've submitted a fix in #5453 which will be part of 8.0.1. |
Fixes npgsql#5446 Signed-off-by: monjowe <jonas.westman@monitor.se>
Fixes npgsql#5446 Signed-off-by: monjowe <jonas.westman@monitor.se>
Steps to reproduce
The issue
Using NpgsqlParameter with empty value throws ArgumentNullException. In version 7.0.6 it works correctly.
Further technical details
Npgsql version: 8.0.0
PostgreSQL version: 16.0
Operating system: Windows 10 22H2
The text was updated successfully, but these errors were encountered: