Author: gbadner
Date: 2009-01-23 18:01:43 -0500 (Fri, 23 Jan 2009)
New Revision: 15814
Modified:
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/entitymode/dom4j/basic/Account.hbm.xml
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/pagination/DataPoint.hbm.xml
Log:
HHH-3696 : Sybase - unit tests fail when numeric values overflow in precision or scale on
insert
Modified:
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/entitymode/dom4j/basic/Account.hbm.xml
===================================================================
---
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/entitymode/dom4j/basic/Account.hbm.xml 2009-01-23
22:52:53 UTC (rev 15813)
+++
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/entitymode/dom4j/basic/Account.hbm.xml 2009-01-23
23:01:43 UTC (rev 15814)
@@ -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">
@@ -48,4 +48,4 @@
<property name="address" type="string"/>
</class>
-</hibernate-mapping>
\ No newline at end of file
+</hibernate-mapping>
Modified:
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/pagination/DataPoint.hbm.xml
===================================================================
---
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/pagination/DataPoint.hbm.xml 2009-01-23
22:52:53 UTC (rev 15813)
+++
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/pagination/DataPoint.hbm.xml 2009-01-23
23:01:43 UTC (rev 15814)
@@ -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>
Show replies by date