diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/procedure/OracleStoredProcedureTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/procedure/OracleStoredProcedureTest.java index ce70dd5651..b259cd63cc 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/procedure/OracleStoredProcedureTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/procedure/OracleStoredProcedureTest.java @@ -412,13 +412,18 @@ public class OracleStoredProcedureTest { ); statement.execute( - "create or replace function find_char(in char search, in varchar string, in integer start default 0) " + + "create or replace function find_char(" + + " search in char, " + + " string in varchar," + + " start in integer default 0) " + "return integer " + - "as begin " + - " select instr( search, string, start ) as position " + + "as " + + " position integer; " + + "begin " + + " select instr( search, string, start ) into position " + " from dual; " + " return position; " + - "end" + "end;" ); } } ) );