Fixes "a bunch of small leaks (closes missing, reported as warnings in Eclipse)" - https://issues.apache.org/jira/browse/OFBIZ-8115
Fixes a bunch of small leaks (closes missing, only warnings in Eclipse) By-product: automatically sort few imports git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758927 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1883,6 +1883,7 @@ public class DatabaseUtil {
|
||||
try {
|
||||
stmt = connection.createStatement();
|
||||
stmt.executeUpdate(sql2);
|
||||
stmt.close();
|
||||
} catch (SQLException e2) {
|
||||
// if this also fails report original error, not this error...
|
||||
return "SQL Exception while executing the following:\n" + sql + "\nError was: " + e.toString();
|
||||
|
||||
Reference in New Issue
Block a user