db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r536146 - in /db/derby/code/trunk/java/client/org/apache/derby/client/am: ClobLocatorInputStream.java ClobLocatorReader.java
Date Tue, 08 May 2007 10:04:17 GMT
Author: kristwaa
Date: Tue May  8 03:04:14 2007
New Revision: 536146

URL: http://svn.apache.org/viewvc?view=rev&rev=536146
Log:
DERBY-2622: Fix build problems related to locator work.
Patch file: BuildproblemsFix_v1.diff

Patch contributed by V.Narayanan.

Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/am/ClobLocatorInputStream.java
    db/derby/code/trunk/java/client/org/apache/derby/client/am/ClobLocatorReader.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/ClobLocatorInputStream.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/ClobLocatorInputStream.java?view=diff&rev=536146&r1=536145&r2=536146
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/ClobLocatorInputStream.java
(original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/ClobLocatorInputStream.java
Tue May  8 03:04:14 2007
@@ -72,7 +72,9 @@
      *        the <code>Clob</code> value on the server.
      */
     public ClobLocatorInputStream(Connection connection, Clob clob) {
-        SanityManager.ASSERT(clob.isLocator());
+        if (SanityManager.DEBUG) {
+            SanityManager.ASSERT(clob.isLocator());
+        }
         
         this.connection = connection;
         this.clob = clob;

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/ClobLocatorReader.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/ClobLocatorReader.java?view=diff&rev=536146&r1=536145&r2=536146
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/ClobLocatorReader.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/ClobLocatorReader.java Tue
May  8 03:04:14 2007
@@ -75,7 +75,9 @@
      *        the <code>Clob</code> value on the server.
      */
     public ClobLocatorReader(Connection connection, Clob clob) {
-        SanityManager.ASSERT(clob.isLocator());
+        if (SanityManager.DEBUG) {
+            SanityManager.ASSERT(clob.isLocator());
+        }
         
         this.connection = connection;
         this.clob = clob;



Mime
View raw message