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 dde7793 commit 32e7a43Copy full SHA for 32e7a43
jdbc-v2/src/main/java/com/clickhouse/jdbc/ConnectionImpl.java
@@ -36,6 +36,7 @@
36
import java.sql.Savepoint;
37
import java.sql.Statement;
38
import java.sql.Struct;
39
+import java.time.Duration;
40
import java.util.Arrays;
41
import java.util.Calendar;
42
import java.util.Collections;
@@ -494,7 +495,7 @@ public boolean isValid(int timeout) throws SQLException {
494
495
if (isClosed()) {
496
return false;
497
}
- return client.ping(timeout * 1_000);
498
+ return client.ping(Duration.ofSeconds(timeout).toMillis());
499
500
501
@Override
0 commit comments