mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-10368 : Unit test failure because Sybase does not support binding an untyped null object
This commit is contained in:
parent
60625b19b2
commit
0582dc1e8e
@ -27,6 +27,7 @@
|
|||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
import java.sql.Types;
|
||||||
|
|
||||||
import org.hibernate.HibernateException;
|
import org.hibernate.HibernateException;
|
||||||
import org.hibernate.engine.spi.SessionImplementor;
|
import org.hibernate.engine.spi.SessionImplementor;
|
||||||
@ -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 {
|
public void nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session) throws HibernateException, SQLException {
|
||||||
if ( value == null ) {
|
if ( value == null ) {
|
||||||
for (int i = 0; i < 6; i++ ) {
|
for (int i = 0; i < 6; i++ ) {
|
||||||
st.setObject( index + i, null );
|
st.setNull( index + i, Types.INTEGER );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
final CompositeDateTime dateTime = (CompositeDateTime) value;
|
final CompositeDateTime dateTime = (CompositeDateTime) value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user