[ 
https://issues.apache.org/jira/browse/OPENJPA-3051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maxim Solodovnik resolved OPENJPA-3051.
---------------------------------------
    Fix Version/s: 4.2.0
         Assignee: Richard Zowalla
       Resolution: Fixed

> H2: a BigDecimal column is created with scale 0
> -----------------------------------------------
>
>                 Key: OPENJPA-3051
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-3051
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Richard Zowalla
>            Assignee: Richard Zowalla
>            Priority: Major
>             Fix For: 4.2.0
>
>
> On H2, a {{BigDecimal}} attribute mapped with {{@Column(precision = 10, scale 
> = 2)}} gets a NUMERIC column with scale 0, so 2.5 is stored as 3 (and 1.5 as 
> 2). This happens with a fresh database created by OpenJPA's schema tool.
> Found independently while working on OPENJPA-3035 and OPENJPA-3044, whose 
> tests use whole-number decimals to avoid it.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to