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

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

Merged
merged 1 commit into from
Oct 13, 2024
Merged

Conversation

AndriySvyryd
Copy link
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.

Copy link
Member

@roji roji left a comment

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
Member Author

The test is in #34870

@AndriySvyryd AndriySvyryd merged commit 893bf3e into release/8.0 Oct 13, 2024
7 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants