HHH-5211 no need to create a schema first when run this test org.hibernate.test.sql.hand.custom.db2.DB2CustomSQLTest

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19441 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Strong Liu 2010-05-10 09:31:20 +00:00
parent 9b9d799801
commit 19c1d56cca
1 changed files with 10 additions and 15 deletions

View File

@ -180,19 +180,19 @@
<sql-query name="simpleScalar" callable="true"> <sql-query name="simpleScalar" callable="true">
<return-scalar column="name" type="string"/> <return-scalar column="name" type="string"/>
<return-scalar column="value" type="long"/> <return-scalar column="value" type="long"/>
{ call HIBDB2TST.simpleScalar(:number) } { call simpleScalar(:number) }
</sql-query> </sql-query>
<sql-query name="paramhandling" callable="true"> <sql-query name="paramhandling" callable="true">
<return-scalar column="value" type="long"/> <return-scalar column="value" type="long"/>
<return-scalar column="value2" type="long"/> <return-scalar column="value2" type="long"/>
{ call HIBDB2TST.paramHandling(?,?) } { call paramHandling(?,?) }
</sql-query> </sql-query>
<sql-query name="paramhandling_mixed" callable="true"> <sql-query name="paramhandling_mixed" callable="true">
<return-scalar column="value" type="long" /> <return-scalar column="value" type="long" />
<return-scalar column="value2" type="long" /> <return-scalar column="value2" type="long" />
{ call HIBDB2TST.paramHandling(?,:second) } { call paramHandling(?,:second) }
</sql-query> </sql-query>
<sql-query name="selectAllEmployments" callable="true"> <sql-query name="selectAllEmployments" callable="true">
@ -210,7 +210,7 @@
<return-column name="CURRENCY"/> <return-column name="CURRENCY"/>
</return-property> </return-property>
</return> </return>
{ call HIBDB2TST.selectAllEmployments() } { call selectAllEmployments() }
</sql-query> </sql-query>
<sql-query name="textholder"> <sql-query name="textholder">
@ -223,15 +223,10 @@
SELECT ID AS {h.id}, PHOTO AS {h.photo} FROM IMAGEHOLDER WHERE ID=? /*FOR UPDATE*/ SELECT ID AS {h.id}, PHOTO AS {h.photo} FROM IMAGEHOLDER WHERE ID=? /*FOR UPDATE*/
</sql-query> </sql-query>
<!-- DB2 seem to *require* users to specify explicit schema/location when executing a stored procedure *stupid* -->
<database-object>
<create>CREATE SCHEMA HIBDB2TST</create>
<drop>DROP SCHEMA HIBDB2TST RESTRICT</drop>
</database-object>
<database-object> <database-object>
<create> <create>
CREATE PROCEDURE HIBDB2TST.selectAllEmployments () RESULT SETS 1 CREATE PROCEDURE selectAllEmployments () RESULT SETS 1
P1: BEGIN P1: BEGIN
DECLARE C1 CURSOR WITH RETURN FOR DECLARE C1 CURSOR WITH RETURN FOR
SELECT EMPLOYEE, EMPLOYER, STARTDATE, ENDDATE, SELECT EMPLOYEE, EMPLOYER, STARTDATE, ENDDATE,
@ -241,14 +236,14 @@
END P1 END P1
</create> </create>
<drop> <drop>
DROP PROCEDURE HIBDB2TST.selectAllEmployments DROP PROCEDURE selectAllEmployments
</drop> </drop>
</database-object> </database-object>
<database-object> <database-object>
<create> <create>
CREATE PROCEDURE HIBDB2TST.paramHandling (IN j SMALLINT, IN i SMALLINT) RESULT SETS 1 CREATE PROCEDURE paramHandling (IN j SMALLINT, IN i SMALLINT) RESULT SETS 1
P1: BEGIN P1: BEGIN
DECLARE C1 CURSOR WITH RETURN FOR DECLARE C1 CURSOR WITH RETURN FOR
SELECT j as value, i as value2 from sysibm.sysdummy1; SELECT j as value, i as value2 from sysibm.sysdummy1;
@ -256,13 +251,13 @@
END P1 END P1
</create> </create>
<drop> <drop>
DROP PROCEDURE HIBDB2TST.paramHandling DROP PROCEDURE paramHandling
</drop> </drop>
</database-object> </database-object>
<database-object> <database-object>
<create> <create>
CREATE PROCEDURE HIBDB2TST.simpleScalar (IN j SMALLINT) RESULT SETS 1 CREATE PROCEDURE simpleScalar (IN j SMALLINT) RESULT SETS 1
P1: BEGIN P1: BEGIN
DECLARE C1 CURSOR WITH RETURN FOR DECLARE C1 CURSOR WITH RETURN FOR
SELECT j as value, 'getAll' as name from sysibm.sysdummy1; SELECT j as value, 'getAll' as name from sysibm.sysdummy1;
@ -270,7 +265,7 @@
END P1 END P1
</create> </create>
<drop> <drop>
DROP PROCEDURE HIBDB2TST.simpleScalar DROP PROCEDURE simpleScalar
</drop> </drop>
</database-object> </database-object>
</hibernate-mapping> </hibernate-mapping>