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
Fix query for snapshotting views on DB2/Z #2712
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a fix for #2710 . The view definition may only be fetched by the name and creator. The search with PATHSCHEMAS is ambiguous and may lead to multiple results.
kataggart
changed the title
Fix issue 2710
Fix diff command to work with diffTypes=views for DB2Z (issue 2710)
Apr 4, 2022
nvoxland
added
the
SafeToBuild
Indicates that a particular PR contains changes which are safe to build using GitHub actions
label
Jul 27, 2022
nvoxland
added
SafeToBuild
Indicates that a particular PR contains changes which are safe to build using GitHub actions
autocandidate
and removed
SafeToBuild
Indicates that a particular PR contains changes which are safe to build using GitHub actions
labels
Jul 27, 2022
nvoxland
approved these changes
Jul 27, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review and test results:
Things to be aware of:
- Fixes view snapshot logic, only impacting db2/z.
Things to worry about:
- Code changes makes sense, but I don't know db2/z enough to know unexpected impacts
nvoxland
changed the title
Fix diff command to work with diffTypes=views for DB2Z (issue 2710)
Fix query for snapshotting views on DB2/Z
Jul 27, 2022
XDelphiGrl
approved these changes
Jul 28, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Fix addresses a DB2Z issue impacting snapshotting views.
- Fix is specific to DB2Z
- No additional testing required.
APPROVED
suryaaki2
approved these changes
Jul 28, 2022
1 task
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
autocandidate
DBDB2Z
featureDiff
featureSnapshot
IntegrationCLI
OSWindows
SafeToBuild
Indicates that a particular PR contains changes which are safe to build using GitHub actions
sprint2022-30
TypeBug
ver4.8.0
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.
This is a fix for #2710 .
The view definition may only be fetched by the name and creator. The search with PATHSCHEMAS is ambiguous and may lead to multiple results.
Environment
Liquibase Version: 4.8.0
Liquibase Integration & Version: CLI
Liquibase Extension(s) & Version: -
Database Vendor & Version: DB2Z 12
Operating System Type & Version: Windows 10 Pro
Pull Request Type
Description
The diff command does not work with diffTypes=views for DB2Z, DB2LUW is not affected.
The error occurs when comparing the views of the ENTW Schema with another schema.
The obviously happens because we use multiple schemas that have similar names (ENTW, ENTW10, ENTW20, ...) and views with the same names exist in all of the schemas.
Steps To Reproduce
Start the diff command.
Actual Behavior
Liquibase aborts with the stacktrace below.
Expected/Desired Behavior
Liquibase should work correctly.
Additional Context
Stacktrace:
Fast Track PR Acceptance Checklist:
Need Help?
Come chat with us in the Liquibase Forum.