db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Armin Waibel <arm...@apache.org>
Subject Re: patch for ClobImpl for JDK 1.3
Date Fri, 05 May 2006 09:59:19 GMT
Hi,

Chiah Tong Kiat wrote:
> Hi
>  
> Made some small changes to get ClobImpl classes compiled in jdk1.3
>  

Many thanks!
I checked in your patch in SVN OJB_1_0_RELEASE branch.

regards,
Armin


> 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);
>      }
>  
> 

---------------------------------------------------------------------
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