mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
Fixed missing bound parameters not throwing QueryException
This commit is contained in:
parent
993e308e96
commit
b4b158aaff
@ -194,7 +194,7 @@ public QueryParameterBinding getBinding(int position) {
|
||||
|
||||
public void verifyParametersBound(boolean reserveFirstParameter) {
|
||||
for ( Map.Entry<QueryParameter, QueryParameterBinding> bindEntry : parameterBindingMap.entrySet() ) {
|
||||
if ( bindEntry.getValue() == null ) {
|
||||
if ( bindEntry.getValue().getBindValue() == null ) {
|
||||
if ( bindEntry.getKey().getName() == null ) {
|
||||
throw new QueryException( "Named parameter [" + bindEntry.getKey().getName() + "] not set" );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user