Skip to content

Commit 94ff52b

Browse files
authored
Adding array to converstion list (#2052)
1 parent 6c2ed7b commit 94ff52b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/JdbcUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ public static Object convert(Object value, Class<?> type) throws SQLException {
238238
return java.sql.Timestamp.valueOf(LocalDateTime.from((TemporalAccessor) value));
239239
} else if (type == java.sql.Time.class && value instanceof TemporalAccessor) {
240240
return java.sql.Time.valueOf(LocalTime.from((TemporalAccessor) value));
241+
} else if (type == java.sql.Array.class) {
242+
return value;
241243
}
242244
} catch (Exception e) {
243245
throw new SQLException("Failed to convert " + value + " to " + type.getName(), ExceptionUtils.SQL_STATE_DATA_EXCEPTION);

0 commit comments

Comments
 (0)