Skip to content

Fix | Perform Null check for SqlErrors in SqlException - #698

Merged
cheenamalhotra merged 2 commits into
dotnet:masterfrom
cheenamalhotra:fix677
Aug 21, 2020
Merged

Fix | Perform Null check for SqlErrors in SqlException#698
cheenamalhotra merged 2 commits into
dotnet:masterfrom
cheenamalhotra:fix677

Conversation

@cheenamalhotra

Copy link
Copy Markdown
Member

Fixes #677

@DavoudEshtehari DavoudEshtehari left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we also update documentation for the effect of default values?
Also, in some cases like State using default value doesn't make sense since it keeps the status of something, not just a plain byte.
In my opinion, It can be a source of a conceptual bug in the future.

@cheenamalhotra

Copy link
Copy Markdown
Member Author

Regarding SqlState "default" value, I think we could address it when implementing #648 .
Other changes addressed.

@cheenamalhotra
cheenamalhotra merged commit e10b230 into dotnet:master Aug 21, 2020
TrayanZapryanov pushed a commit to TrayanZapryanov/SqlClient that referenced this pull request Aug 31, 2020
TrayanZapryanov added a commit to TrayanZapryanov/SqlClient that referenced this pull request Aug 31, 2020
@cheenamalhotra
cheenamalhotra deleted the fix677 branch April 1, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System.ArgumentOutOfRangeException on ".ToString()" of SqlException

5 participants