public void setObjectForStatement ( PreparedStatement ps , int index , Object value , int sqlType ) throws SQLException { if ( sqlType == Types . TINYINT ) { ps . setByte ( index , ( ( Byte ) value ) . byteValue ( ) ) ; } else { super . setObjectForStatement ( ps , index , value , sqlType ) ; } }
Patch provided by Avril Kotzen ( hi001