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<?> ) {
5930
5930
final JdbcMapping paramJdbcMapping = paramModelType .getSingleJdbcMapping ();
5931
5931
final JdbcMapping inferredJdbcMapping = inferredValueMapping .getSingleJdbcMapping ();
5932
5932
// 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 () ) )
5934
5935
// and the bind type is not explicit or the bind type has the same JDBC type
5935
5936
&& ( !bindingTypeExplicit || canUseInferredType ( paramJdbcMapping , inferredJdbcMapping ) ) ) {
5936
5937
return resolveInferredValueMappingForParameter ( inferredValueMapping );
You can’t perform that action at this time.
0 commit comments