[
https://issues.apache.org/jira/browse/TRAFODION-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16127486#comment-16127486
]
ASF GitHub Bot commented on TRAFODION-2704:
-------------------------------------------
Github user DaveBirdsall commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/1207#discussion_r133236549
--- Diff:
dcs/src/test/jdbc_test/src/test/java/org/trafodion/jdbc_test/TestBoolean.java
---
@@ -75,9 +75,17 @@ public void JDBCBoolean() throws SQLException {
e.printStackTrace();
assertNull(e.getMessage());
} finally {
- stmt.close();
- prepStmt.close();
- conn.close();
+ if (stmt != null) {
+ stmt.close();
+ }
+
+ if (prepStmt != null) {
--- End diff --
Could the stmt.close() throw an exception, preventing us from trying to
close prepStmt and conn?
> JDBC regression test failed by too many statement on the same session
> ---------------------------------------------------------------------
>
> Key: TRAFODION-2704
> URL: https://issues.apache.org/jira/browse/TRAFODION-2704
> Project: Apache Trafodion
> Issue Type: Bug
> Reporter: Weiqing Xu
> Assignee: Weiqing Xu
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)