-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 "double" handling with H2 #3273
Conversation
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.
Looking at the docs, it looks like h2 1.x supported "double" and "double precision" as aliases for each other, but 2.x only supports "double precision. Neither version supports arguments, so I simplified the code down to just "always return double precision"
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 bug in Liquibase SQL generation for the DOUBLE PRECISION datatype.
- New unit tests added to validate input of "double" and "double(20)"; both inputs are expect to return DOUBLE PRECISION.
- H2 itself does not support providing precision, but Liquibase will handle such input as DOUBLE PRECISION.
- No additional testing required.
APPROVED
Could you please apply this fix also to the BIGINT, INTEGER, BOOLEAN types? this bug is blocking for us to upgrade to h2 v2. |
+1 |
2 similar comments
+1 |
+1 |
@TomBenjamins We have already applied a similar fix for |
Hey guys, I just want to let you know I'll be creating a separate issue to address Thanks, |
Hello Daniel, for us the only blocking one is BIGINT, as that one is being used in nearly all our table creation scripts. greetings, Tom |
Hey @TomBenjamins I have just created this issue, please have a look to it and feel free to edit/anything you guys consider relevant for me when working on it. Thanks, |
Impact
Description
Fix double type column parsing when double type is specified with precision (i.e. double(25)).
Fixes #3099
Things to be aware of
Things to worry about
Additional Context