Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2017-08-14 15:24:13 -0400
committerRyan D. Brooks2017-08-22 12:48:28 -0400
commit75065e0d2428ffe9261590a06da6b048302caacc (patch)
tree1ec245f3bb8ab6483962c9a7e41f7a50b02913d0
parent1d5cea86ec9addd11e3d4699af4a4602a70dfd21 (diff)
downloadorg.eclipse.osee-75065e0d2428ffe9261590a06da6b048302caacc.tar.gz
org.eclipse.osee-75065e0d2428ffe9261590a06da6b048302caacc.tar.xz
org.eclipse.osee-75065e0d2428ffe9261590a06da6b048302caacc.zip
bug: DB connection was leaked by JdbcClient.getBatchStatement
-rw-r--r--plugins/org.eclipse.osee.jdbc/src/org/eclipse/osee/jdbc/internal/JdbcClientImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.jdbc/src/org/eclipse/osee/jdbc/internal/JdbcClientImpl.java b/plugins/org.eclipse.osee.jdbc/src/org/eclipse/osee/jdbc/internal/JdbcClientImpl.java
index da29a08d1c..a07aeef466 100644
--- a/plugins/org.eclipse.osee.jdbc/src/org/eclipse/osee/jdbc/internal/JdbcClientImpl.java
+++ b/plugins/org.eclipse.osee.jdbc/src/org/eclipse/osee/jdbc/internal/JdbcClientImpl.java
@@ -487,12 +487,12 @@ public final class JdbcClientImpl implements JdbcClient {
@Override
public OseePreparedStatement getBatchStatement(String query) {
- return getBatchStatement(getConnection(), query, JDBC__MAX_TX_ROW_COUNT);
+ return getBatchStatement(query, JDBC__MAX_TX_ROW_COUNT);
}
@Override
public OseePreparedStatement getBatchStatement(String query, int batchIncrementSize) {
- return getBatchStatement(getConnection(), query, batchIncrementSize);
+ return getBatchStatement(null, query, batchIncrementSize);
}
@Override

Back to the top