Skip to content

Commit 48c153e

Browse files
author
Paultagoras
committed
Cleanup + Type Conversion
1 parent e489e7a commit 48c153e

File tree

6 files changed

+223
-280
lines changed

6 files changed

+223
-280
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
@@ -484,7 +484,7 @@ public Properties getClientInfo() throws SQLException {
484484
@Override
485485
public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
486486
try {
487-
return new com.clickhouse.jdbc.types.Array(List.of(elements), typeName, JdbcUtils.convertToSqlType(ClickHouseDataType.valueOf(typeName)));
487+
return new com.clickhouse.jdbc.types.Array(List.of(elements), typeName, JdbcUtils.convertToSqlType(ClickHouseDataType.valueOf(typeName)).getVendorTypeNumber());
488488
} catch (Exception e) {
489489
throw new SQLException("Failed to create array", ExceptionUtils.SQL_STATE_CLIENT_ERROR, e);
490490
}

0 commit comments

Comments
 (0)