[hibernate-commits] Hibernate SVN: r15882 - core/trunk/testsuite/src/test/java/org/hibernate/test/sql/hand/custom/sybase.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Tue Feb 3 22:56:19 EST 2009
Author: gbadner
Date: 2009-02-03 22:56:19 -0500 (Tue, 03 Feb 2009)
New Revision: 15882
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/sql/hand/custom/sybase/Mappings.hbm.xml
Log:
HHH-3685 - Added workaround to unit test for creating Sybase stored procedures in chained transaction mode
Modified: core/trunk/testsuite/src/test/java/org/hibernate/test/sql/hand/custom/sybase/Mappings.hbm.xml
===================================================================
--- core/trunk/testsuite/src/test/java/org/hibernate/test/sql/hand/custom/sybase/Mappings.hbm.xml 2009-02-04 03:39:17 UTC (rev 15881)
+++ core/trunk/testsuite/src/test/java/org/hibernate/test/sql/hand/custom/sybase/Mappings.hbm.xml 2009-02-04 03:56:19 UTC (rev 15882)
@@ -193,9 +193,19 @@
DROP PROCEDURE selectAllEmployments
</drop>
</database-object>
-
+
+ <!-- The following is a workaround for HHH-3685 so that SchemaExport -->
+ <!-- changes the transaction mode of selectAllEmployments to "chained" -->
<database-object>
<create>
+ sp_procxmode selectAllEmployments, 'chained'
+ </create>
+ <!-- no drop command corresponding to "sp_procxmode ..." -->
+ <drop/>
+ </database-object>
+
+ <database-object>
+ <create>
CREATE PROCEDURE paramHandling @j int, @i int AS
SELECT @j as value, @i as value2
</create>
@@ -204,8 +214,18 @@
</drop>
</database-object>
+ <!-- The following is a workaround for HHH-3685 so that SchemaExport -->
+ <!-- changes the transaction mode of paramHandling to "chained" -->
<database-object>
<create>
+ sp_procxmode paramHandling, 'chained'
+ </create>
+ <!-- no drop command corresponding to "sp_procxmode ..." -->
+ <drop/>
+ </database-object>
+
+ <database-object>
+ <create>
CREATE PROCEDURE simpleScalar @number int AS
SELECT @number as value, 'getAll' as name
</create>
@@ -214,4 +234,14 @@
</drop>
</database-object>
+ <!-- The following is a workaround for HHH-3685 so that SchemaExport -->
+ <!-- changes the transaction mode of simpleScalar to "chained" -->
+ <database-object>
+ <create>
+ sp_procxmode simpleScalar, 'chained'
+ </create>
+ <!-- no drop command corresponding to "sp_procxmode ..." -->
+ <drop/>
+ </database-object>
+
</hibernate-mapping>
More information about the hibernate-commits
mailing list