Skip to content

Commit

Permalink
HHH-10368 : Unit test failure because Sybase does not support binding…
Browse files Browse the repository at this point in the history
… an untyped null object
  • Loading branch information
gbadner committed Dec 9, 2015
1 parent 60625b1 commit 0582dc1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;

import org.hibernate.HibernateException;
import org.hibernate.engine.spi.SessionImplementor;
Expand Down Expand Up @@ -117,7 +118,7 @@ public Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor sessi
public void nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session) throws HibernateException, SQLException {
if ( value == null ) {
for (int i = 0; i < 6; i++ ) {
st.setObject( index + i, null );
st.setNull( index + i, Types.INTEGER );
}
} else {
final CompositeDateTime dateTime = (CompositeDateTime) value;
Expand Down

0 comments on commit 0582dc1

Please sign in to comment.