Skip to content

Conversation

@roji
Copy link
Member

@roji roji commented Nov 24, 2022

This moves the application of pending bulk commands to before we snapshot the SQL position, result set count, etc. This way, if the new command goes beyond the parameter limit and causes a rollback, we don't lose the pending bulk commands.

Fixes #29539

@roji roji requested a review from AndriySvyryd November 24, 2022 09:50
@roji roji merged commit 851e47f into dotnet:main Nov 30, 2022
@roji roji deleted the PendingCommandsEdgeCase branch November 30, 2022 10:36
roji added a commit to roji/efcore that referenced this pull request Nov 30, 2022
wtgodbe pushed a commit that referenced this pull request Jan 4, 2023
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.

SQL Server bulk insert broken when new command applies pending commands and goes over the batch parameter limit

2 participants