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

Don't execute CustomSqlChanges to generate logs #5524

Conversation

Alf-Melmac
Copy link
Contributor

Impact

  • Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

CustomSQLChanges were being executed twice: one to generate logs and the other one was the actual run.

This PR prevents log generation execution.

This fixes #5523

@Alf-Melmac
Copy link
Contributor Author

Tested locally and with the package build on this pr against my example provided in the issue

<dependency>
  <groupId>org.liquibase</groupId>
  <artifactId>liquibase-core</artifactId>
  <version>5523-customsqlchange-execute-method-runs-twice-SNAPSHOT</version>
</dependency>

Copy link
Collaborator

@filipelautert filipelautert left a comment

Choose a reason for hiding this comment

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

@Alf-Melmac thanks for the fix!

@filipelautert filipelautert added this to the 1NEXT milestone Jan 30, 2024
@filipelautert filipelautert merged commit 4afac3a into liquibase:master Jan 30, 2024
33 of 35 checks passed
@Alf-Melmac Alf-Melmac deleted the 5523-customsqlchange-execute-method-runs-twice branch February 12, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

CustomSqlChange generateStatements method runs twice
4 participants