mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
Fix thowing IllegalArgumentException when accessing procedure not registered parameters
This commit is contained in:
parent
a6ee855d29
commit
ba558503a8
@ -146,8 +146,7 @@ public ProcedureParameterImplementor<?> getQueryParameter(String name) {
|
||||
return parameter;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
throw new IllegalArgumentException( "Named parameter [" + name + "] is not registered with this procedure call" );
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -158,7 +157,7 @@ public ProcedureParameterImplementor<?> getQueryParameter(int positionLabel) {
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
throw new IllegalArgumentException( "Positional parameter [" + positionLabel + "] is not registered with this procedure call" );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -4,7 +4,7 @@
|
||||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.test.jpa.procedure;
|
||||
package org.hibernate.orm.test.jpa.procedure;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.EntityManager;
|
Loading…
x
Reference in New Issue
Block a user