Fix/load relative file (fixes child of #1277) #2060
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Environment
Liquibase Version: 4.4.3 (and all 4.x before)
Liquibase Integration & Version: any
Liquibase Extension(s) & Version: liquibase-core
Database Vendor & Version: H2 (and all others)
Operating System Type & Version: Windows 10 (and all others)
Pull Request Type
Description
See #1277, but for LoadDataChange, CreateProcedureChange or CreateViewChange.
Testcases showing the problem are included in this PR.
Steps To Reproduce
List the steps to reproduce the behavior.
data/some_data.csv
sql/proc.sql
sql/view.sql
Actual Behavior
Liquibase throws an exception complaining about missing file (a different one for each changeset):
Expected/Desired Behavior
Liquibase does not complain about missing files and works flawlessly.
Additional Context
Same bug has already been fixed in #1798 for a diffenent change. The changes above have been overlooked.
I had to fix an existing testcase which used a changeset not included in an changelog.
Fast Track PR Acceptance Checklist: