mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 14:30:16 +00:00
HHH-8523 - Incorrect parameter binding for Calendar and TemporalType
This commit is contained in:
parent
5a3233b915
commit
075da4fdf0
@ -231,7 +231,7 @@ public void prepare(CallableStatement statement, int startIndex) throws SQLExcep
|
||||
int[] sqlTypesToUse = sqlTypes;
|
||||
|
||||
// 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() ) ) {
|
||||
switch ( bind.getExplicitTemporalType() ) {
|
||||
case TIMESTAMP: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user