Skip to content

Commit

Permalink
HHH-17151 Avoid setting explicit temporal bind type for null values
Browse files Browse the repository at this point in the history
  • Loading branch information
mbladel committed Dec 17, 2024
1 parent b35c783 commit e1042c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public void setBindValues(

private void setExplicitTemporalPrecision(TemporalType precision) {
explicitTemporalPrecision = precision;
if ( bindType == null || JavaTypeHelper.isTemporal( determineJavaType( bindType ) ) ) {
if ( bindType != null && JavaTypeHelper.isTemporal( determineJavaType( bindType ) ) ) {
bindType = BindingTypeHelper.INSTANCE.resolveTemporalPrecision( precision, bindType, sessionFactory );
}
}
Expand Down

0 comments on commit e1042c2

Please sign in to comment.