-
Notifications
You must be signed in to change notification settings - Fork 286
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
Incorrect IsDBNull results on null rowversion when using ReadAsync #1228
Comments
Hi @roji This issue has been fixed by PR #1182 and will be included in 4.0.0-preview1 release. One thing to note:
as we can't support cast on DBNull.
|
Thanks @cheenamalhotra, good to now! Yes, it's definitely expected that GetFieldValue throw if IsDBNull returns |
Duplicate of #1175 |
if IsDBNull returns 'true' :) |
Yes :) |
Just to confirm that the above indeed behaves correctly on 4.0.0-preview1 (IsDBNull return true after ReadAsync) |
When calling IsDBNull on a rowversion column after having called ReadAsync, false is return for a null value instead of true. This occurs on Microsoft.Data.SqlClient 3.0, and is likely related to #998 (/cc @Wraith2).
The below minimal repro uses a left join to produce a null rowversion. This was originally raised and repro'd on EF Core by @frankbuckley in dotnet/efcore#25074, thanks.
The text was updated successfully, but these errors were encountered: