[PATCH] Fixed open cursor leaks in Oracle by closing all ResultSets and PreparedStatements
Michael Jaszczyk <[email protected]>
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <[email protected]> |
-- PIRONET NDH Michael Jaszczyk - Director Software Maarweg 149 - 161, 50825 Cologne - Germany Phone: +49 (0)221 770 1720 - Fax: +49 (0)221 770 1005 <mailto:[email protected]> - <http://www.pironet-ndh.com/>
SeedGenerator.patch
(text/plain, 934 B)
Index: SeedGenerator.java
===================================================================
RCS file: /cvsroot/openjms/openjms/src/main/org/exolab/jms/persistence/SeedGenerator.java,v
retrieving revision 1.5
diff -u -w -i -b -r1.5 SeedGenerator.java
--- SeedGenerator.java 7 Aug 2003 13:33:07 -0000 1.5
+++ SeedGenerator.java 5 Jan 2004 08:50:17 -0000
@@ -144,22 +144,11 @@
} catch (Exception exception) {
throw new PersistenceException("next " + exception.getMessage());
} finally {
- if (select != null) {
SQLHelper.close(select);
- }
-
- if (update != null) {
SQLHelper.close(update);
- }
-
- if (insert != null) {
SQLHelper.close(insert);
- }
-
- if (result != null) {
SQLHelper.close(result);
}
- }
return value;
}