HHH-8523 - Incorrect parameter binding for Calendar and TemporalType
This commit is contained in:
parent
5a3233b915
commit
075da4fdf0
|
@ -231,7 +231,7 @@ public abstract class AbstractParameterRegistrationImpl<T> implements ParameterR
|
||||||
int[] sqlTypesToUse = sqlTypes;
|
int[] sqlTypesToUse = sqlTypes;
|
||||||
|
|
||||||
// however, for Calendar binding with an explicit TemporalType we may need to adjust this...
|
// however, for Calendar binding with an explicit TemporalType we may need to adjust this...
|
||||||
if ( bind.getExplicitTemporalType() != null ) {
|
if ( bind != null && bind.getExplicitTemporalType() != null ) {
|
||||||
if ( Calendar.class.isInstance( bind.getValue() ) ) {
|
if ( Calendar.class.isInstance( bind.getValue() ) ) {
|
||||||
switch ( bind.getExplicitTemporalType() ) {
|
switch ( bind.getExplicitTemporalType() ) {
|
||||||
case TIMESTAMP: {
|
case TIMESTAMP: {
|
||||||
|
|
Loading…
Reference in New Issue