Skip to content

Commit d30d2ef

Browse files
committed
Fixed NPE for keepAlive
1 parent 1c6c428 commit d30d2ef

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

jdbc/src/main/java/tech/ydb/jdbc/context/TableServiceExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public boolean isValid(YdbValidator validator, int timeout) throws SQLException
248248
try {
249249
KeepAliveSessionSettings settings = new KeepAliveSessionSettings().setTimeout(Duration.ofSeconds(timeout));
250250
Session.State keepAlive = validator.call(
251-
"Keep alive: " + tx.txID(), null,
251+
"Keep alive: " + tx.txID(),
252252
() -> session.keepAlive(settings)
253253
);
254254
return keepAlive == Session.State.READY;

jdbc/src/test/java/tech/ydb/jdbc/impl/helper/JdbcConnectionExtention.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ private JdbcConnectionExtention(JdbcUrlHelper jdbcURL) {
3939
public JdbcConnectionExtention(YdbHelperExtension ydb, boolean autoCommit) {
4040
this(new JdbcUrlHelper(ydb)
4141
.withArg("failOnTruncatedResult", "true")
42-
.withArg("enableTxTracer", "true")
4342
.withArg("autoCommit", String.valueOf(autoCommit))
44-
// .withArg("useQueryService", "true")
43+
// .withArg("useQueryService", "false")
4544
);
4645
}
4746

0 commit comments

Comments
 (0)