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

Fixed input string handling in CompareControl constructor #3309

Conversation

filipelautert
Copy link
Collaborator

@filipelautert filipelautert commented Sep 26, 2022

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

Incorrect regex expression "." in call to 'split()'  at CompareControl constructor was causing the strings to being wrongly slit.

As this code is not used within liquibase-core, an unit test was created.
Fixes #3204

Things to be aware of

  • Code fixed

Things to worry about

  • None

Additional Context

  • None

@github-actions
Copy link

Unit Test Results

  4 668 files  +12    4 668 suites  +12   36m 10s ⏱️ - 7m 39s
  4 629 tests +  1    4 414 ✔️ +  1     215 💤 ±0  0 ±0 
54 720 runs  +12  49 700 ✔️ +12  5 020 💤 ±0  0 ±0 

Results for commit a6c68a4. ± Comparison against base commit 031928b.

@filipelautert filipelautert changed the title Fixed incorrect regex expression "." in call to 'split()'  at unused CompareControl constructor Fixed incorrect regex expression "." in call to 'split()'  at CompareControl constructor Sep 26, 2022
@nvoxland nvoxland changed the title Fixed incorrect regex expression "." in call to 'split()'  at CompareControl constructor Fixed input string handling in CompareControl constructor Oct 12, 2022
Copy link
Contributor

@XDelphiGrl XDelphiGrl left a comment

Choose a reason for hiding this comment

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

This PR addresses a bug in the logic used to split catalog.schema based on the . character. Without this fix, Liquibase interpreted aaa.bbb as having a catalogName of empty string and a schema name of aa.bbb. With the fix, Liquibase correctly identifies the catalogName as aaa and the schemaName as bbb.

  • New unit test added.
  • No additional testing required.

APPROVED

@nvoxland nvoxland merged commit 6e6a719 into master Nov 8, 2022
@nvoxland nvoxland deleted the 3204-comparecontrol-constructor-handles-input-strings-incorrectly branch November 8, 2022 07:05
@kevin-atx kevin-atx added this to the 1NEXT milestone Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

CompareControl constructor handles input strings incorrectly
5 participants