Skip to content

Commit f655cb1

Browse files
author
Andrey
committed
Bugfix for Boolean type formatting: needsQuoting(Boolean) -> false
1 parent e78aab5 commit f655cb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/ru/yandex/clickhouse/util/ClickHouseValueFormatter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ public static boolean needsQuoting(Object o) {
168168
if (o instanceof Number) {
169169
return false;
170170
}
171+
if (o instanceof Boolean) {
172+
return false;
173+
}
171174
if (o.getClass().isArray()) {
172175
return false;
173176
}

0 commit comments

Comments
 (0)