Skip to content

Commit ae2c1e4

Browse files
committed
Fixed issues
1 parent 50bbce4 commit ae2c1e4

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/BinaryStreamReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ public void set(int index, Object value) {
705705
Array.set(array, index, value);
706706
} catch (IllegalArgumentException e) {
707707
throw new IllegalArgumentException("Failed to set value at index: " + index +
708-
" value " + value + " of class " + value.getClass().getName() + " when array is type of " + array.getClass(), e);
708+
" value " + value + " of class " + value.getClass().getName() + " when array type is " + array.getClass(), e);
709709
}
710710
}
711711

jdbc-v2/src/main/java/com/clickhouse/jdbc/PreparedStatementImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,6 @@ public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws S
484484
ensureOpen();
485485
TimeZone tz = (cal == null ? defaultCalendar : cal).getTimeZone();
486486
values[parameterIndex - 1] = encodeObject(DataTypeUtils.toZonedDateTime(x, tz));
487-
values[parameterIndex - 1] = encodeObject(DataTypeUtils.toZonedDateTime(x, tz));
488487
}
489488

490489
@Override

jdbc-v2/src/test/java/com/clickhouse/jdbc/JDBCDateTimeTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ void testLapsTime() throws Exception {
230230
}
231231
}
232232

233-
@Test
233+
@Test(groups = {"integration"})
234234
void testDateInRange() throws Exception {
235235
try (Connection conn = getJdbcConnection();
236236
Statement stmt = conn.createStatement()) {

0 commit comments

Comments
 (0)