Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BD6CB18E31 for ; Wed, 30 Sep 2015 06:17:04 +0000 (UTC) Received: (qmail 58085 invoked by uid 500); 30 Sep 2015 06:17:04 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 58054 invoked by uid 500); 30 Sep 2015 06:17:04 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 58044 invoked by uid 99); 30 Sep 2015 06:17:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Sep 2015 06:17:04 +0000 Date: Wed, 30 Sep 2015 06:17:04 +0000 (UTC) From: "Khurram Faraaz (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (DRILL-2837) Resolve what Statement.cancel() really should do MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-2837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Khurram Faraaz closed DRILL-2837. --------------------------------- > Resolve what Statement.cancel() really should do > ------------------------------------------------ > > Key: DRILL-2837 > URL: https://issues.apache.org/jira/browse/DRILL-2837 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC > Reporter: Daniel Barclay (Drill) > Assignee: Daniel Barclay (Drill) > Fix For: 1.2.0 > > > It is not clear exactly what JDBC's Statement.cancel() method is supposed to do. > The Javadoc method description for cancel() says only: > bq. Cancels this Statement object if both the DBMS and driver support aborting an SQL statement. This method can be used by one thread to cancel a statement that is being executed by another thread. > In particular, it's not clear what "cancels this Statement" really means. (The JDBC PDF specification doesn't anything about it.) >   > It seems reasonable to think that calling cancel() on a Statement cancels any associated query that has not already completed, leaves any associated ResultSet closed, and --leaves the statement closed--. > However, JDBC doesn't actually specify any of that, AvaticaStatement.cancel() does not close the Statement, and it's not clear whether SQLLine expects the above interpretation or not. -- This message was sent by Atlassian JIRA (v6.3.4#6332)