diff options
Diffstat (limited to 'qadevOOo/runner/convwatch/DBHelper.java')
-rw-r--r-- | qadevOOo/runner/convwatch/DBHelper.java | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/qadevOOo/runner/convwatch/DBHelper.java b/qadevOOo/runner/convwatch/DBHelper.java index aaf6497bcd75..03128eafa0ba 100644 --- a/qadevOOo/runner/convwatch/DBHelper.java +++ b/qadevOOo/runner/convwatch/DBHelper.java @@ -69,11 +69,19 @@ class ShareConnection try { - oStmt = m_aCon.createStatement(); - - GlobalLogWriter.get().println("DB: " + m_sSQL); - /* ResultSet oResult = */ - oStmt.executeUpdate(m_sSQL); + try + { + oStmt = m_aCon.createStatement(); + + GlobalLogWriter.get().println("DB: " + m_sSQL); + /* ResultSet oResult = */ + oStmt.executeUpdate(m_sSQL); + } + finally + { + if (oStmt != null) + oStmt.close(); + } } catch(Exception e) { |