Skip to content

Commit

Permalink
HHH-3696 : Sybase - unit tests fail when numeric values overflow in p…
Browse files Browse the repository at this point in the history
…recision or scale on insert

git-svn-id: https://svn.jboss.org/repos/hibernate/core/branches/Branch_3_2@15813 1b8cb986-b30d-0410-93ca-fae66ebed9b2
  • Loading branch information
gbadner committed Jan 23, 2009
1 parent 36b0362 commit b3eba44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<id name="accountId" type="string" node="@id"/>
<many-to-one name="customer" column="customerId" entity-name="Customer" cascade="all" embed-xml="true" />
<!--not-null="true"-->
<property name="balance" type="big_decimal" node="balance" precision="10" scale="0" />
<property name="balance" type="big_decimal" node="balance" precision="10" scale="2" />
</class>

<class entity-name="Location" node="location">
Expand All @@ -48,4 +48,4 @@
<property name="address" type="string"/>
</class>

</hibernate-mapping>
</hibernate-mapping>
4 changes: 2 additions & 2 deletions test/org/hibernate/test/pagination/DataPoint.hbm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<generator class="increment"/>
</id>
<property name="x">
<column name="xval" not-null="true" precision="4" unique-key="xy"/>
<column name="xval" not-null="true" precision="20" scale="19" unique-key="xy"/>
</property>
<property name="y">
<column name="yval" not-null="true" precision="4" unique-key="xy"/>
<column name="yval" not-null="true" precision="20" scale="19" unique-key="xy"/>
</property>
<property name="description"/>
</class>
Expand Down

0 comments on commit b3eba44

Please sign in to comment.