Skip to content

[release/8.0] Don't execute empty batches #34882

Merged
AndriySvyryd merged 1 commit into
release/8.0from
Issue33337_8.0
Oct 13, 2024
Merged

[release/8.0] Don't execute empty batches #34882
AndriySvyryd merged 1 commit into
release/8.0from
Issue33337_8.0

Conversation

@AndriySvyryd

Copy link
Copy Markdown
Member

Fixes #33337
Port of #34870

Description

In EF Core 8.0.3 we fixed an issue where empty lines were incorrectly removed from literals in migration scripts. However, this caused some operations to contain only empty lines.

Customer impact

Exception thrown when applying a migration in the above scenario, as it's considered an error to execute an empty operation.

How found

Multiple customer reports since 8.0.3

Regression

Yes, from 8.0.2. Introduced in #32788

Testing

Tests added

Risk

Low.

@roji roji left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AndriySvyryd is this missing a test?

@AndriySvyryd

Copy link
Copy Markdown
Member Author

The test is in #34870

@AndriySvyryd AndriySvyryd merged commit 893bf3e into release/8.0 Oct 13, 2024
@AndriySvyryd AndriySvyryd deleted the Issue33337_8.0 branch October 13, 2024 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants