Skip to content
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

Fix SqlDataReader.IsDBNull() for json #2830

Merged
merged 3 commits into from
Sep 4, 2024

Conversation

deepaksa1
Copy link
Contributor

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
Copy link
Contributor

ErikEJ commented Sep 2, 2024

Possible to add a test?

Copy link
Contributor

@apoorvdeshmukh apoorvdeshmukh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Please add a testcase that fails without your fix.

Copy link
Contributor

@apoorvdeshmukh apoorvdeshmukh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested few minor changes.

@deepaksa1 deepaksa1 merged commit f5994c8 into dotnet:feat-jsonsupport Sep 4, 2024
8 checks passed
@deepaksa1 deepaksa1 deleted the dev/jsonNullFix branch September 4, 2024 09:46
deepaksa1 added a commit to deepaksa1/SqlClient that referenced this pull request Oct 1, 2024
* fix SqlDataReader.IsDBNull() for json

* add testcase

* resolve PR commits
@mdaigle mdaigle added this to the 6.0-preview2 milestone Oct 24, 2024
@David-Engel David-Engel added the Area\Json Issues that are targeted for the Json feature in the driver. label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area\Json Issues that are targeted for the Json feature in the driver.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants