db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r552282 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java
Date Sun, 01 Jul 2007 11:24:36 GMT
Author: kahatlen
Date: Sun Jul  1 04:24:35 2007
New Revision: 552282

URL: http://svn.apache.org/viewvc?view=rev&rev=552282
Log:
DERBY-2885: Wrong connection object used in EmbedConnection.clearLOBMapping()

Check the value of lobHashMap for the correct EmbedConnection, and
don't create a map if none is needed.

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

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java?view=diff&rev=552282&r1=552281&r2=552282
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java Sun Jul
 1 04:24:35 2007
@@ -2357,7 +2357,7 @@
 		//free all the lob resources in the HashMap
 		//initialize the locator value to 0 and
 		//the hash table object to null.
-		if (lobHashMap != null) {
+		if (rootConnection.lobHashMap != null) {
 			for (Iterator e = getlobHMObj().values().iterator();
 				e.hasNext() ;) {
 				Object obj = e.next();
@@ -2370,8 +2370,8 @@
 					temp.free();
 				}
 			}
+			getlobHMObj().clear();
 		}
-		getlobHMObj().clear();
 	}
 
 	/**



Mime
View raw message