db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r531170 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java
Date Sun, 22 Apr 2007 12:31:21 GMT
Author: kahatlen
Date: Sun Apr 22 05:31:20 2007
New Revision: 531170

URL: http://svn.apache.org/viewvc?view=rev&rev=531170
Log:
DERBY-2566: OutOfMemory/Sanity-assert failed when updating database

Close activations in insertRow(), updateRow() and deleteRow().

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java?view=diff&rev=531170&r1=531169&r2=531170
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java Sun Apr
22 05:31:20 2007
@@ -3666,6 +3666,7 @@
                         ps.execute(act, true, 0L); 
                 rs.close();
                 rs.finish();
+                act.close();
 
                 lcc.popStatementContext(statementContext, null);
             } catch (StandardException t) {
@@ -3745,6 +3746,7 @@
             }
             rs.close();
             rs.finish();
+            act.close();
             //For forward only resultsets, after a update, the ResultSet will be positioned
right before the next row.
             if (getType() == TYPE_FORWARD_ONLY) {
                 currentRow.setRowArray(null);
@@ -3808,6 +3810,7 @@
                 }
                 rs.close();
                 rs.finish();
+                act.close();
                 //After a delete, the ResultSet will be positioned right before 
                 //the next row.
                 currentRow.setRowArray(null);



Mime
View raw message