Skip to content

Commit 45acb4e

Browse files
committed
Stick with JDK 8
1 parent b59646d commit 45acb4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pom.xml.swp

16 KB
Binary file not shown.

clickhouse-jdbc/src/main/java/com/clickhouse/jdbc/internal/ClickHouseStatementImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected ClickHouseResponse executeStatement(String stmt,
119119
request.options(options);
120120
}
121121
if (settings != null && !settings.isEmpty()) {
122-
if (request.getSessionId().isEmpty()) {
122+
if (!request.getSessionId().isPresent()) {
123123
request.session(UUID.randomUUID().toString());
124124
}
125125
for (Entry<String, String> e : settings.entrySet()) {
@@ -130,7 +130,7 @@ protected ClickHouseResponse executeStatement(String stmt,
130130
List<ClickHouseExternalTable> list = new ArrayList<>(tables.size());
131131
for (ClickHouseExternalTable t : tables) {
132132
if (t.isTempTable()) {
133-
if (request.getSessionId().isEmpty()) {
133+
if (!request.getSessionId().isPresent()) {
134134
request.session(UUID.randomUUID().toString());
135135
}
136136
request.query("drop temporary table if exists `" + t.getName() + "`").execute().get();

0 commit comments

Comments
 (0)