|
1 | 1 | package com.clickhouse.jdbc.internal; |
2 | 2 |
|
3 | | -import com.clickhouse.client.api.DataTypeUtils; |
4 | 3 | import com.clickhouse.client.api.data_formats.internal.BinaryStreamReader; |
5 | 4 | import com.clickhouse.client.api.data_formats.internal.InetAddressConverter; |
6 | 5 | import com.clickhouse.data.ClickHouseColumn; |
7 | 6 | import com.clickhouse.data.ClickHouseDataType; |
8 | 7 | import com.clickhouse.data.Tuple; |
9 | | -import com.clickhouse.data.format.BinaryStreamUtils; |
10 | | -import com.clickhouse.jdbc.PreparedStatementImpl; |
11 | 8 | import com.clickhouse.jdbc.types.Array; |
12 | 9 | import com.google.common.collect.ImmutableMap; |
13 | | -import org.slf4j.Logger; |
14 | 10 |
|
15 | | -import java.awt.*; |
16 | 11 | import java.math.BigInteger; |
17 | 12 | import java.net.Inet4Address; |
18 | 13 | import java.net.Inet6Address; |
|
22 | 17 | import java.sql.SQLException; |
23 | 18 | import java.sql.SQLType; |
24 | 19 | import java.sql.Time; |
25 | | -import java.sql.Types; |
26 | | -import java.time.*; |
27 | | -import java.time.chrono.ChronoZonedDateTime; |
| 20 | +import java.time.Instant; |
| 21 | +import java.time.LocalDate; |
| 22 | +import java.time.LocalDateTime; |
| 23 | +import java.time.LocalTime; |
| 24 | +import java.time.OffsetDateTime; |
| 25 | +import java.time.ZonedDateTime; |
28 | 26 | import java.time.temporal.TemporalAccessor; |
29 | | -import java.util.ArrayList; |
30 | | -import java.util.Arrays; |
31 | 27 | import java.util.Collections; |
32 | 28 | import java.util.EnumSet; |
33 | 29 | import java.util.HashMap; |
|
37 | 33 | import java.util.Stack; |
38 | 34 | import java.util.TreeMap; |
39 | 35 | import java.util.function.Function; |
40 | | -import java.util.stream.Collectors; |
41 | 36 |
|
42 | 37 | public class JdbcUtils { |
43 | 38 | //Define a map to store the mapping between ClickHouse data types and SQL data types |
@@ -299,10 +294,10 @@ public static Object convert(Object value, Class<?> type, ClickHouseColumn colum |
299 | 294 | return new Array(column, arrayValue.getArrayOfObjects()); |
300 | 295 | } |
301 | 296 |
|
302 | | - return convertObject(value, type, column); |
| 297 | + return convertObject(value, type); |
303 | 298 | } |
304 | 299 |
|
305 | | - public static Object convertObject(Object value, Class<?> type, ClickHouseColumn column) throws SQLException { |
| 300 | + public static Object convertObject(Object value, Class<?> type) throws SQLException { |
306 | 301 | if (value == null || type == null) { |
307 | 302 | return value; |
308 | 303 | } |
|
0 commit comments