File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
jdbc-v2/src/main/java/com/clickhouse/jdbc Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1717import com .clickhouse .client .api .metadata .TableSchema ;
1818import com .clickhouse .client .api .query .QueryResponse ;
1919import com .clickhouse .data .ClickHouseColumn ;
20+ import com .clickhouse .data .ClickHouseDataType ;
2021import com .clickhouse .jdbc .internal .ExceptionUtils ;
2122import com .clickhouse .jdbc .internal .JdbcUtils ;
2223import com .clickhouse .jdbc .types .Array ;
@@ -959,7 +960,8 @@ public Statement getStatement() throws SQLException {
959960
960961 @ Override
961962 public Object getObject (int columnIndex , Map <String , Class <?>> map ) throws SQLException {
962- return getObject (columnIndex , map .get (JdbcUtils .convertToSqlType (getSchema ().getColumnByIndex (columnIndex ).getDataType ())));
963+ ClickHouseDataType type = getSchema ().getColumnByIndex (columnIndex ).getDataType ();
964+ return getObject (columnIndex , map .get (JdbcUtils .convertToSqlType (type ).getName ()));
963965 }
964966
965967 @ Override
You can’t perform that action at this time.
0 commit comments