We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32e7a43 commit 6af47f4Copy full SHA for 6af47f4
jdbc-v2/src/main/java/com/clickhouse/jdbc/ConnectionImpl.java
@@ -495,7 +495,9 @@ public boolean isValid(int timeout) throws SQLException {
495
if (isClosed()) {
496
return false;
497
}
498
- return client.ping(Duration.ofSeconds(timeout).toMillis());
+ return timeout == 0
499
+ ? client.ping()
500
+ : client.ping(Duration.ofSeconds(timeout).toMillis());
501
502
503
@Override
0 commit comments