Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 41ABB17825 for ; Fri, 25 Sep 2015 17:06:57 +0000 (UTC) Received: (qmail 51888 invoked by uid 500); 25 Sep 2015 17:06:57 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 51836 invoked by uid 500); 25 Sep 2015 17:06:57 -0000 Mailing-List: contact dev-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 dev@drill.apache.org Received: (qmail 51824 invoked by uid 99); 25 Sep 2015 17:06:56 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2015 17:06:56 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 896FDE01FB; Fri, 25 Sep 2015 17:06:56 +0000 (UTC) From: dsbos To: dev@drill.apache.org Reply-To: dev@drill.apache.org Message-ID: Subject: [GitHub] drill pull request: DRILL-2489: Throw exception from remaining met... Content-Type: text/plain Date: Fri, 25 Sep 2015 17:06:56 +0000 (UTC) GitHub user dsbos opened a pull request: https://github.com/apache/drill/pull/170 DRILL-2489: Throw exception from remaining methods for closed JDBC objects. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dsbos/incubator-drill bugs/drill-2769_2489_JDBC_exceptions Alternatively you can review and apply these changes as the patch at: https://github.com/apache/drill/pull/170.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #170 ---- commit 90bf53dee9407d40065a820a6f0b7a35cf54fbea Author: dbarclay Date: 2015-08-19T23:55:40Z DRILL-2489: Throw exception from remaining methods for closed JDBC objects. Refactored unit test to check all methods per interface. (Replaced individual, static test methods with bulk reflection-based checking.) [Drill2489CallsAfterCloseThrowExceptionsTest] Added DrillResultSetMetaDataImpl. Added method overrides to check state for remaining methods from Connection, Statement, PreparedStatement, ResultSet, ResultSetMetaData and DatabaseMetaData. Also: - renamed checkNotClosed to throwIfClosed. commit fb960d8be27c3a810474caedfe4a0890fd0222ac Author: dbarclay Date: 2015-08-27T21:05:26Z DRILL-2769: Fix most non-SQLException not-supported-yet exceptions. Core: Added (auto-scanning) unit test. [Drill2769UnsupportedReportsUseSqlExceptionTest] Added translation of lots of UnsupportedOperationExceptions (and some RuntimeExceptions) from Avatica code to SQLFeatureNotSupportedExceptions (tons of method overrides). Also: Added explicit bounds checks in ResultSetMetaData methods and checking of last-accessed column in DrillAccessorList.wasNull() (to fix other RuntimeExceptions to SQLExceptions). Added resetting of last-accessed column to fix latent bug in DrillAccessorList. Hygiene: - Renamed some zero-based index/ordinal-position parameters to "...Offset". - Renamed some one-based index/ordinal-position parameters to "...Number". - Renamed DrillAccessorList lastColumn to rowLastColumnOffset; declared explicit logical null value for rowLastColumnOffset. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---