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

Prevent error when unlocking the changelog in MySQL affects zero rows and useAffectedRows is true. Fixes #5502 #5777

Merged
merged 4 commits into from
Apr 15, 2024

Conversation

mpvvliet
Copy link
Contributor

@mpvvliet mpvvliet commented Apr 7, 2024

Fixes #5502

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

Whenever the JDBC driver for MySQL is configured with useAffectedRows and the changeset being processed has been processed before, the changelog unlocking mechanism returns zero rows affected and causes an error. This fix detects this situation and prevents an error from being raised.

Things to be aware of

Only relevant for MySQL.

Things to worry about

Any other scenario that also causes the unlocking mechanism to return zero rows affected will be treated as a success. I am unaware of any scenarios breaking this change but maybe I'm overlooking something.

Additional Context

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.

Thanks for the @mpvvliet !

@mpvvliet mpvvliet requested a deployment to external April 9, 2024 19:27 — with GitHub Actions Abandoned
@filipelautert filipelautert merged commit b24f1a4 into liquibase:master Apr 15, 2024
33 of 34 checks passed
@filipelautert filipelautert added this to the 1NEXT milestone Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
3 participants