Skip to content

Commit 6c2ed7b

Browse files
authored
Merge pull request #2045 from ClickHouse/type-conversion
Cleanup + Type Conversion
2 parents 5b3917f + 874249b commit 6c2ed7b

File tree

6 files changed

+291
-293
lines changed

6 files changed

+291
-293
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ public Properties getClientInfo() throws SQLException {
487487
@Override
488488
public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
489489
try {
490-
return new com.clickhouse.jdbc.types.Array(List.of(elements), typeName, JdbcUtils.convertToSqlType(ClickHouseDataType.valueOf(typeName)));
490+
return new com.clickhouse.jdbc.types.Array(List.of(elements), typeName, JdbcUtils.convertToSqlType(ClickHouseDataType.valueOf(typeName)).getVendorTypeNumber());
491491
} catch (Exception e) {
492492
throw new SQLException("Failed to create array", ExceptionUtils.SQL_STATE_CLIENT_ERROR, e);
493493
}

0 commit comments

Comments
 (0)