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

Fixes corrupted connection issue when an exception occurs during RPC execution with TVP types #1068

Merged
merged 3 commits into from
May 17, 2021

Conversation

cheenamalhotra
Copy link
Member

@cheenamalhotra cheenamalhotra commented May 12, 2021

Repro
The test case added here reproduces the issue with current driver.

Root Cause:
Looks like call to FailureCleanup(stateObj, e); has been missed when exception is handled which contributes to connection corruption for future queries.

This issue also exists in all System.Data.SqlClient drivers.
cc @saurabh500 @corivera

@cheenamalhotra cheenamalhotra merged commit 00d45e8 into dotnet:main May 17, 2021
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.

4 participants