Skip to content

Commit 8b7fbcb

Browse files
Narossebersole
authored andcommitted
Fixed missing bound parameters not throwing QueryException
1 parent 0a55998 commit 8b7fbcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/query/internal/QueryParameterBindingsImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public QueryParameterBinding getBinding(int position) {
194194

195195
public void verifyParametersBound(boolean reserveFirstParameter) {
196196
for ( Map.Entry<QueryParameter, QueryParameterBinding> bindEntry : parameterBindingMap.entrySet() ) {
197-
if ( bindEntry.getValue() == null ) {
197+
if ( bindEntry.getValue().getBindValue() == null ) {
198198
if ( bindEntry.getKey().getName() == null ) {
199199
throw new QueryException( "Named parameter [" + bindEntry.getKey().getName() + "] not set" );
200200
}

0 commit comments

Comments
 (0)