db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r648012 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BlobClob4BlobTest.java
Date Mon, 14 Apr 2008 21:38:02 GMT
Author: kmarsden
Date: Mon Apr 14 14:37:59 2008
New Revision: 648012

URL: http://svn.apache.org/viewvc?rev=648012&view=rev
Log:
DERBY-3574 With client, attempting to get the lob length after commit or connection close
if there was a call to length() before commit does not throw an exception

Add test for connection closed case.
Contributed by Tiago R. Espinha (tiago at espinhas dot net)


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BlobClob4BlobTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BlobClob4BlobTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BlobClob4BlobTest.java?rev=648012&r1=648011&r2=648012&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BlobClob4BlobTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BlobClob4BlobTest.java
Mon Apr 14 14:37:59 2008
@@ -1360,10 +1360,10 @@
                 shortClob = rs.getClob(1);
         }
         
-        /**
-         * We call it before the commit(); to cache the result
-         * DERBY-3574
-         */
+        /*
+        * We call it before the commit(); to cache the result
+        * DERBY-3574
+        */
         clob.length();
         shortClob.length();
         
@@ -1459,6 +1459,14 @@
             if (clobLength == 26)
                 shortClob = rs.getClob(1);
         }
+		
+        /*
+         * We call it before the commit(); to cache the result
+         * DERBY-3574
+         */
+        clob.length();
+        shortClob.length();
+		
         rs.close();
         stmt.close();
         commit();
@@ -2420,6 +2428,14 @@
             if (blobLength == 26)
                 shortBlob = rs.getBlob(1);
         }
+		
+        /*
+         * We call it before the commit(); to cache the result
+         * DERBY-3574
+         */
+        blob.length();
+        shortBlob.length();
+		
         rs.close();
         stmt.close();
         commit();
@@ -2487,6 +2503,14 @@
             if (blobLength == 26)
                 shortBlob = rs.getBlob(1);
         }
+		
+        /*
+         * We call it before the commit(); to cache the result
+         * DERBY-3574
+         */
+        blob.length();
+        shortBlob.length();
+		
         rs.close();
         rollback();
         getConnection().close();



Mime
View raw message