db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r400034 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobImpl.java
Date Fri, 05 May 2006 09:56:44 GMT
Author: arminw
Date: Fri May  5 02:56:42 2006
New Revision: 400034

URL: http://svn.apache.org/viewcvs?rev=400034&view=rev
Log:
patch by tongkiat, make class compatible with JDK_1.3

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobImpl.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobImpl.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobImpl.java?rev=400034&r1=400033&r2=400034&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobImpl.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobImpl.java Fri May
 5 02:56:42 2006
@@ -31,6 +31,7 @@
 import java.sql.SQLException;
 
 import org.apache.commons.lang.ArrayUtils;
+import org.apache.commons.lang.StringUtils;
 import org.apache.commons.lang.exception.ExceptionUtils;
 import org.apache.ojb.broker.util.ReaderInputStream;
 
@@ -154,13 +155,13 @@
     public long position(String searchstr, long start) throws SQLException
     {
         checkMethod();
-        return getWriter().getBuffer().indexOf(searchstr, (int) --start);
+        return getWriter().getBuffer().toString().indexOf(searchstr, (int) --start);
     }
 
     public long position(Clob searchstr, long start) throws SQLException
     {
         checkMethod();
-        return getWriter().getBuffer().indexOf(
+        return getWriter().getBuffer().toString().indexOf(
                 searchstr.getSubString(0, (int) searchstr.length()), (int) --start);
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message