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/trunk@15815 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Gail Badner 2009-01-23 23:17:08 +00:00
parent 45e93dc562
commit a115232c65
2 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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>