Skip to content

Commit 57810b4

Browse files
author
Paultagoras
committed
Update PreparedStatementImpl.java
1 parent df5c4ae commit 57810b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,8 @@ private static String encodeObject(Object x) throws SQLException {
502502
listString.append("]");
503503

504504
return listString.toString();
505-
} else if (x instanceof Map<?, ?> tmpMap) {
505+
} else if (x instanceof Map) {
506+
Map<?, ?> tmpMap = (Map<?, ?>) x;
506507
StringBuilder mapString = new StringBuilder();
507508
mapString.append("{");
508509
for (Object key : tmpMap.keySet()) {

0 commit comments

Comments
 (0)