Use setBytes in JdbcCommon for binary types
This closes
@@ -807,7 +807,11 @@ public class JdbcCommon {
throw new ParseException("Unable to parse binary data using the formatter `" + valueFormat + "`.",0);
}
+ try {
stmt.setBinaryStream(parameterIndex, new ByteArrayInputStream(bValue), bValue.length);
+ } catch (Exception ex) {
+ stmt.setBytes(parameterIndex, bValue);
+ }
break;
case Types.CHAR:
