Skip to content

Conversation

@cheenamalhotra
Copy link
Member

Fixes #542

This PR revises fix introduced in #490 to address stored procedure concerns.
The check for _attentionSent is applicable for both TDS Tokens DONEPROC and DONE, whereas, we only want to conditionally work when DONE_ATTN bit is received, which is validated when HasReceivedAttention is populated in the same flow.

This seems like the right way to fix MARS TDS Header issue.

@David-Engel
Copy link
Contributor

@cheenamalhotra Did you manually run the test in ManualTests\SQL\AsyncTest\AsyncCancelledConnectionsTest.cs to verify the original issue is still fixed? The test fails regularly in pipelines, so it is disabled by default. But it always worked well on my local machine.

@cheenamalhotra
Copy link
Member Author

Yes I verified that test. Did you experience any issues with that one?

@Wraith2
Copy link
Contributor

Wraith2 commented Apr 28, 2020

Can the issue details in #542 be converted to a test to make sure this doesn't regress in future?

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.

SqlDependency.Stop() in Microsoft.Data.SqlClient 1.1.2 doesn't remove stored procedure

6 participants