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
Set max fractional timestamp digits to 12 for all DB2 editions (fix #2880) #2892
Set max fractional timestamp digits to 12 for all DB2 editions (fix #2880) #2892
Conversation
Any progress on this? |
@ctgnz sorry we haven't yet been able to move this forward as we have had to focus on some higher priority work with the resources we have; I will talk with the team during standup tomorrow and see if we can put some time on it. Thanks! |
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:
- Only impacts db2 database types
- Changes make sense to me and don't impact existing tests
Things to worry about:
- Nothing
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 removes a Liquibase limitation preventing DB2 timestamps greater than 9 from being snapshotted.
- DB2 versions from 9.7 onward support a maximum of 12 digits in timestamps.
- DB2 Timestamp Documentation
- Integration test added.
- No additional testing required.
APPROVED
Environment
Liquibase Version:
4.11.0
Liquibase Integration & Version: <Pick one: CLI, maven, gradle, spring boot, servlet, etc.>
Maven
Liquibase Extension(s) & Version:
Database Vendor & Version:
DB2 11
Operating System Type & Version:
Linux/Unix/Windows
Pull Request Type
Description
A clear and concise description of the issue being addressed. Additional guidance here.
Steps To Reproduce
List the steps to reproduce the behavior.
Actual Behavior
A clear and concise description of what happens in the software before this pull request.
The generate-changelog job fails with error saying that 12 digits is not supported by DB2:
[2022-05-30 16:07:50] SEVERE [liquibase.integration] Using a TIMESTAMP data type with a fractional precision of 12 is not supported on db2: A timestamp datatype with 12 fractional digits was requested, but DB2/LINUX X8664 only supports 9 digits.
Expected/Desired Behavior
A clear and concise description of what happens in the software after this pull request.
The generate-changelog job successfully creates the change log, because DB2 does support 12 digit precision in timestamps.
Screenshots (if appropriate)
If applicable, add screenshots to help explain your problem.
Additional Context
Add any other context about the problem here.
Fast Track PR Acceptance Checklist:
Need Help?
Come chat with us in the Liquibase Forum.