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 #2028 #2133

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix #2028 #2133

wants to merge 1 commit into from

Conversation

davikor
Copy link

@davikor davikor commented Nov 21, 2024

This fixes issue #2028 that occurs when executing ExecuteAsync on a CommandDefinition with Pipelined command flag in combination with multiple parameters on the Microsoft.Data.SqlClient and with MultipleActiveRecordSets set to true.

I simply applied the fix proposed in the issue and added a test to ensure that the issue is not occuring.

As far as I understand, the original version runs ExecuteNonQueryAsync on a DbCommand but disposes this command before awaiting the result ExecuteNonQueryAsync. With this fix this behavior is turned around. However, I am not sure how this affects other drivers, or why this issue did not occur with the System.Data.SqlClientdriver.

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.

1 participant