Skip to content

Commit

Permalink
Merge pull request #2045 from ClickHouse/type-conversion
Browse files Browse the repository at this point in the history
Cleanup + Type Conversion
  • Loading branch information
Paultagoras authored Dec 22, 2024
2 parents 5b3917f + 874249b commit 6c2ed7b
Show file tree
Hide file tree
Showing 6 changed files with 291 additions and 293 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ public Properties getClientInfo() throws SQLException {
@Override
public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
try {
return new com.clickhouse.jdbc.types.Array(List.of(elements), typeName, JdbcUtils.convertToSqlType(ClickHouseDataType.valueOf(typeName)));
return new com.clickhouse.jdbc.types.Array(List.of(elements), typeName, JdbcUtils.convertToSqlType(ClickHouseDataType.valueOf(typeName)).getVendorTypeNumber());
} catch (Exception e) {
throw new SQLException("Failed to create array", ExceptionUtils.SQL_STATE_CLIENT_ERROR, e);
}
Expand Down
Loading

0 comments on commit 6c2ed7b

Please sign in to comment.