/[Apache-SVN]
ViewVC logotype

Revision 289539


Jump to revision: Previous Next
Author: kmarsden
Date: Fri Sep 16 13:52:14 2005 UTC (4 years, 2 months ago)
Changed paths: 3
Log Message:
DERBY-557 
Client driver gets OutOfMemoryError when re-executing statement without closing ResultSet 

Attached a patch which fixes the bug. The patch ensures that the ResultSets associated with a Statement/PreparedStatement are removed from CommitAndRollbackListeners_ in org.apache.derby.client.am.Connection when the statement is re-executed.

I have run derbyall with only one error (wrong length of encryption key, not related to the patch). I have also run the program in the problem description (both with Statement and PreparedStatement), and the memory usage doesn't increase over time.

		Contributed by Knut Anders Hatlen
	

Changed paths:

Path Details
Directorydb/derby/code/trunk/java/client/org/apache/derby/client/am/PreparedStatement.java modified , text changed
Directorydb/derby/code/trunk/java/client/org/apache/derby/client/am/ResultSet.java modified , text changed
Directorydb/derby/code/trunk/java/client/org/apache/derby/client/am/Statement.java modified , text changed

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2