pavlukhin commented on a change in pull request #6490: IGNITE-7285 Add default
query timeout
URL: https://github.com/apache/ignite/pull/6490#discussion_r329473442
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/odbc/odbc/OdbcRequestHandler.java
##########
@@ -338,9 +338,12 @@ private SqlFieldsQueryEx makeQuery(String schema, String
sql, Object[] args, int
SqlFieldsQueryEx qry = makeQuery(schema, sql);
qry.setArgs(args);
- qry.setTimeout(timeout, TimeUnit.SECONDS);
qry.setAutoCommit(autoCommit);
+ if (timeout >= 0) {
Review comment:
Curly braces are redundant according to code style.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services