rzo1 opened a new pull request, #256:
URL: https://github.com/apache/openjpa/pull/256

   https://issues.apache.org/jira/browse/OPENJPA-3051
   
   On H2, `@Column(precision = 10, scale = 2)` on a `BigDecimal` created a 
plain `NUMERIC` column, and H2 2.x reads that as scale 0, so 2.5 was stored as 
3.
   
   - `H2Dictionary` no longer treats `NUMERIC`/`DECIMAL` as fixed size, so the 
column is `NUMERIC(10, 2)`.
   - On H2 2.x a decimal column without a precision is created as 
`DECFLOAT(38)` instead of an integer column. A configured 
`NumericTypeName`/`DecimalTypeName` is still used. Whole numbers are read back 
without exponent notation.
   - The tests of OPENJPA-3035 and OPENJPA-3044 now use fractional values.
   - Migration note added (existing tables are not changed; how to alter them).
   
   New `TestH2DecimalTypeNames` and `TestDecimalScale`. Full suites pass on 
Derby and H2.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to