Hi Sven,
luckily, you mail got not buried under all these others :-)
ad 1) - unfortunately that method returns a java.io.Reader which is definitely
wrong, we still discuss whether it is better to make it a LONGVARCHAR
(then you would get a String) or a CLOB (then you would get a Clob).
ad 2) - yes, that type mapping seems to be broken.
I'll put the issues on my list.
Alexander Schr�der
SAP DB, SAP Labs Berlin
> -----Original Message-----
> From: Sven K�hler [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 02, 2003 3:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [BUG, JDBC] LONG field and getObject
>
>
> addition:
> ResultSetMetaData.getColumnType() and getColumnTypeName()
> return VARCHAR
> instead of LONGVARCHAR or CLOB.
>
> Sven K�hler wrote:
>
> > hi,
> >
> > i've got a ResultSet r and one PreparedStatement s and i do
> something like
> > s.setObject(1, r.getObject(1));
> >
> > and after that, my LONG field contains
> >
> "[EMAIL PROTECTED]"
> which is
> > not what i expected.
> >
> > I thought, that r.getObject() would return a String. It
> works for other
> > column-types like VARCHAR, INT etc.
> > It seem to only affect LONG columns.
>
>
> _______________________________________________
> sapdb.general mailing list
> [EMAIL PROTECTED]
> http://listserv.sap.com/mailman/listinfo/sapdb.general
>
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general