drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkhatua <...@git.apache.org>
Subject [GitHub] drill pull request #1024: DRILL-3640: Support JDBC Statement.setQueryTimeout...
Date Wed, 08 Nov 2017 00:33:53 GMT
Github user kkhatua commented on a diff in the pull request:

    https://github.com/apache/drill/pull/1024#discussion_r149546431
  
    --- Diff: exec/jdbc/src/main/java/org/apache/drill/jdbc/impl/DrillCursor.java ---
    @@ -376,6 +417,19 @@ synchronized void cleanup() {
         currentBatchHolder.clear();
       }
     
    +  long getTimeoutInMilliseconds() {
    +    return timeoutInMilliseconds;
    +  }
    +
    +  //Set the cursor's timeout in seconds
    +  void setTimeout(int timeoutDurationInSeconds){
    +    this.timeoutInMilliseconds = timeoutDurationInSeconds*1000L;
    --- End diff --
    
    +1 


---

Mime
View raw message