HHH-3685 - Added workaround to unit test for creating Sybase stored procedures in chained transaction mode
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15882 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
4ed21cbce5
commit
832b611185
|
@ -193,7 +193,17 @@
|
|||
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
|
||||
|
@ -204,6 +214,16 @@
|
|||
</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
|
||||
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue