Skip to content

Commit

Permalink
DRILL-2489: Throw exception from remaining methods for closed JDBC ob…
Browse files Browse the repository at this point in the history
…jects.

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.
  • Loading branch information
dsbos authored and hnfgns committed Nov 9, 2015
1 parent e78e286 commit daf816c
Show file tree
Hide file tree
Showing 12 changed files with 3,169 additions and 1,881 deletions.
Expand Up @@ -15,7 +15,6 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */

package org.apache.drill.jdbc; package org.apache.drill.jdbc;


import java.sql.Connection; import java.sql.Connection;
Expand Down

0 comments on commit daf816c

Please sign in to comment.