Skip to content

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