mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
HHH-3696 : Sybase - unit tests fail when numeric values overflow in precision or scale on insert
git-svn-id: https://svn.jboss.org/repos/hibernate/core/branches/Branch_3_2@15813 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
36b036210d
commit
b3eba449ff
@ -38,7 +38,7 @@
|
|||||||
<id name="accountId" type="string" node="@id"/>
|
<id name="accountId" type="string" node="@id"/>
|
||||||
<many-to-one name="customer" column="customerId" entity-name="Customer" cascade="all" embed-xml="true" />
|
<many-to-one name="customer" column="customerId" entity-name="Customer" cascade="all" embed-xml="true" />
|
||||||
<!--not-null="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>
|
||||||
|
|
||||||
<class entity-name="Location" node="location">
|
<class entity-name="Location" node="location">
|
||||||
@ -48,4 +48,4 @@
|
|||||||
<property name="address" type="string"/>
|
<property name="address" type="string"/>
|
||||||
</class>
|
</class>
|
||||||
|
|
||||||
</hibernate-mapping>
|
</hibernate-mapping>
|
||||||
|
@ -13,10 +13,10 @@
|
|||||||
<generator class="increment"/>
|
<generator class="increment"/>
|
||||||
</id>
|
</id>
|
||||||
<property name="x">
|
<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>
|
||||||
<property name="y">
|
<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>
|
||||||
<property name="description"/>
|
<property name="description"/>
|
||||||
</class>
|
</class>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user