- Notifications
You must be signed in to change notification settings - Fork311
Fix SqlDataReader.IsDBNull() for json#2830
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Possible to add a test? |
There was a problem hiding this 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.
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonTest.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this 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.
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/JsonTest/JsonTest.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
f5994c8
intodotnet:feat-jsonsupportUh oh!
There was an error while loading.Please reload this page.
* fix SqlDataReader.IsDBNull() for json* add testcase* resolve PR commits
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.