File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
hibernate-core/src/main/java/org/hibernate/query/sqm/sql Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5930,7 +5930,8 @@ else if ( paramType instanceof MappingModelExpressible<?> ) {
59305930 final JdbcMapping paramJdbcMapping = paramModelType .getSingleJdbcMapping ();
59315931 final JdbcMapping inferredJdbcMapping = inferredValueMapping .getSingleJdbcMapping ();
59325932 // Only use the inferred mapping as parameter type when the JavaType accepts values of the bind type
5933- if ( inferredJdbcMapping .getMappedJavaType ().isWider ( paramJdbcMapping .getMappedJavaType () )
5933+ if ( ( inferredJdbcMapping .getMappedJavaType () == paramJdbcMapping .getMappedJavaType ()
5934+ || inferredJdbcMapping .getMappedJavaType ().isWider ( paramJdbcMapping .getMappedJavaType () ) )
59345935 // and the bind type is not explicit or the bind type has the same JDBC type
59355936 && ( !bindingTypeExplicit || canUseInferredType ( paramJdbcMapping , inferredJdbcMapping ) ) ) {
59365937 return resolveInferredValueMappingForParameter ( inferredValueMapping );
You can’t perform that action at this time.
0 commit comments