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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]