db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oyste...@apache.org
Subject svn commit: r584756 - /db/derby/code/branches/10.3/java/client/org/apache/derby/client/am/Clob.java
Date Mon, 15 Oct 2007 12:01:02 GMT
Author: oysteing
Date: Mon Oct 15 05:01:01 2007
New Revision: 584756

URL: http://svn.apache.org/viewvc?rev=584756&view=rev
Log:
DERBY-3107: Client: Clob.free() needs to tell server to release locator.

Modified:
    db/derby/code/branches/10.3/java/client/org/apache/derby/client/am/Clob.java

Modified: db/derby/code/branches/10.3/java/client/org/apache/derby/client/am/Clob.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.3/java/client/org/apache/derby/client/am/Clob.java?rev=584756&r1=584755&r2=584756&view=diff
==============================================================================
--- db/derby/code/branches/10.3/java/client/org/apache/derby/client/am/Clob.java (original)
+++ db/derby/code/branches/10.3/java/client/org/apache/derby/client/am/Clob.java Mon Oct 15
05:01:01 2007
@@ -831,6 +831,20 @@
         //valid
         isValid = false;
         
+        try {
+            synchronized (agent_.connection_) {
+                if (agent_.loggingEnabled()) {
+                    agent_.logWriter_.traceEntry(this, "free");
+                }
+                if (isLocator()) {
+                    agent_.connection_.locatorProcedureCall()
+                        .clobReleaseLocator(locator_);
+                }
+            }
+        } catch (SqlException se) {
+            throw se.getSQLException();
+        }
+
         if(isString()) {
             string_ = null;
             utf8String_ = null;



Mime
View raw message