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 295f6e9 commit dd12371Copy full SHA for dd12371
jdbc/src/main/java/tech/ydb/jdbc/impl/YdbConnectionImpl.java
@@ -78,8 +78,10 @@ public YdbConnectionImpl(YdbContext context) throws SQLException {
78
79
<T extends RequestSettings<?>> T withDefaultTimeout(T settings) {
80
Duration operation = ctx.getOperationProperties().getDeadlineTimeout();
81
- settings.setOperationTimeout(operation);
82
- settings.setTimeout(operation.plusSeconds(1));
+ if (!operation.isZero() && !operation.isNegative()) {
+ settings.setOperationTimeout(operation);
83
+ settings.setTimeout(operation.plusSeconds(1));
84
+ }
85
return settings;
86
}
87
0 commit comments