Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

#34882
Merged
AndriySvyryd merged 1 commit into
release/8.0dotnet/efcore:release/8.0from
Issue33337_8.0dotnet/efcore:Issue33337_8.0Copy head branch name to clipboard
Oct 13, 2024
Merged

[release/8.0] Don't execute empty batches #34882
AndriySvyryd merged 1 commit into
release/8.0dotnet/efcore:release/8.0from
Issue33337_8.0dotnet/efcore:Issue33337_8.0Copy head branch name to clipboard

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.