Skip to content

Commit

Permalink
HHH-8523 - Incorrect parameter binding for Calendar and TemporalType
Browse files Browse the repository at this point in the history
  • Loading branch information
sebersole committed Sep 19, 2013
1 parent 5a3233b commit 075da4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 075da4f

Please sign in to comment.