Skip to content

Commit 7029a0f

Browse files
committed
fix
1 parent 680c78a commit 7029a0f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

databend-jdbc/src/main/java/com/databend/jdbc/PresignContext.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,7 @@ public static PresignContext getPresignContext(DatabendConnection connection, Pr
6060
throw new SQLException("Failed to get presign url");
6161
}
6262
} catch (Throwable e) {
63-
try {
64-
statement.close();
65-
} catch (Throwable closeException) {
66-
if (closeException != e) {
67-
e.addSuppressed(closeException);
68-
}
69-
}
70-
throw e;
63+
throw new SQLException("Failed to do presign");
7164
} finally {
7265
statement.close();
7366
}

0 commit comments

Comments
 (0)