db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chiah Tong Kiat" <...@silicomp.com.sg>
Subject patch for ClobImpl for JDK 1.3
Date Thu, 04 May 2006 23:50:21 GMT
Hi
 
Made some small changes to get ClobImpl classes compiled in jdk1.3
 
Thanks
tongkiat
 
Index: ClobImpl.java
===================================================================
--- ClobImpl.java (revision 399870)
+++ ClobImpl.java          (working copy)
@@ -154,13 +154,13 @@
     public long position(String searchstr, long start) throws
SQLException
     {
         checkMethod();
-        return getWriter().getBuffer().indexOf(searchstr, (int)
--start);
+        return getWriter().toString().indexOf(searchstr, (int)
--start);
     }
 
     public long position(Clob searchstr, long start) throws
SQLException
     {
         checkMethod();
-        return getWriter().getBuffer().indexOf(
+        return getWriter().toString().indexOf(
                 searchstr.getSubString(0, (int) searchstr.length()),
(int) --start);
     }
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message