dotnet / SqlClient

Microsoft.Data.SqlClient provides database connectivity to SQL Server for .NET applications.
MIT License
842 stars 281 forks source link

Fix SqlDataReader.IsDBNull() for json #2830

Closed deepaksa1 closed 3 weeks ago

deepaksa1 commented 4 weeks ago

This PR aims to fix SqlDataReader.IsDBNull() API for json data type. Currently, it returns false for a null json column. Adding the case for json type returns expected output.

ErikEJ commented 4 weeks ago

Possible to add a test?