You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Lars Clausen <lc...@statsbiblioteket.dk> on 2005/11/01 15:12:40 UTC

Error in docs -- or something more sinister?

The 10.1 docs state that the java.sql.Clob.getCharacterStream() method
is UNSUPPORTED [sic], however it works nicely when I try to use it.  Is
the documentation out of date, or are there some special cases I should
know about where is it indeed unsupported?

-Lars



Re: Error in docs -- or something more sinister?

Posted by Daniel John Debrunner <dj...@debrunners.com>.
Colin Rosenthal wrote:
> On Tue, 2005-11-01 at 18:50, Daniel John Debrunner wrote:
> 
>>Lars Clausen wrote:
>>
>>
>>>The 10.1 docs state that the java.sql.Clob.getCharacterStream() method
>>>is UNSUPPORTED [sic], however it works nicely when I try to use it.  Is
>>>the documentation out of date, or are there some special cases I should
>>>know about where is it indeed unsupported?
>>
>>My guess is that it is not supported for embedded.
> 
> 
> We are actually using it in embedded mode. 

I went back in the old history of the Cloudscape code and it seems that
getCharacterStream was always supported in embedded mode, though
possibly it did not work in JDK 1.1. Thus I think the NOT SUPPORTED in
the docs is just a result of a miscommunication.

Dan.


Re: Error in docs -- or something more sinister?

Posted by Colin Rosenthal <cs...@statsbiblioteket.dk>.
On Tue, 2005-11-01 at 18:50, Daniel John Debrunner wrote:
> Lars Clausen wrote:
> 
> > The 10.1 docs state that the java.sql.Clob.getCharacterStream() method
> > is UNSUPPORTED [sic], however it works nicely when I try to use it.  Is
> > the documentation out of date, or are there some special cases I should
> > know about where is it indeed unsupported?
> 
> My guess is that it is not supported for embedded.

We are actually using it in embedded mode. 

Colin Rosenthal
Statsbiblioteket


Re: Error in docs -- or something more sinister?

Posted by Daniel John Debrunner <dj...@debrunners.com>.
Lars Clausen wrote:

> The 10.1 docs state that the java.sql.Clob.getCharacterStream() method
> is UNSUPPORTED [sic], however it works nicely when I try to use it.  Is
> the documentation out of date, or are there some special cases I should
> know about where is it indeed unsupported?

My guess is that it is not supported for embedded.

Nothing sinister, just documentation not in sync with the code.

We are always looking for folks to help out!

Dan.


Re: Error in docs -- or something more sinister?

Posted by Lars Clausen <lc...@statsbiblioteket.dk>.
On Tue, 2005-11-01 at 19:13, Sunitha Kambhampati wrote:
> Lars Clausen wrote:
> 
> >The 10.1 docs state that the java.sql.Clob.getCharacterStream() method
> >is UNSUPPORTED [sic], however it works nicely when I try to use it.  Is
> >the documentation out of date, or are there some special cases I should
> >know about where is it indeed unsupported?
> >
> >-Lars
> >
> >
> >
> >  
> >
> It seems to me a documentation bug.  It would be great if you could file 
> a doc bug for it in jira.  Thanks.

Done.

> Derby supports  java.sql.Clob.getCharacterStream(). 
> Derby in embedded mode does not yet support 
> java.sql.Clob.setCharacterStream(long pos) though.

No, we use java.sql.Statement.setCharacterStream() instead.

-Lars


Re: Error in docs -- or something more sinister?

Posted by Sunitha Kambhampati <ks...@gmail.com>.
Lars Clausen wrote:

>The 10.1 docs state that the java.sql.Clob.getCharacterStream() method
>is UNSUPPORTED [sic], however it works nicely when I try to use it.  Is
>the documentation out of date, or are there some special cases I should
>know about where is it indeed unsupported?
>
>-Lars
>
>
>
>  
>
It seems to me a documentation bug.  It would be great if you could file 
a doc bug for it in jira.  Thanks.

Derby supports  java.sql.Clob.getCharacterStream(). 
Derby in embedded mode does not yet support 
java.sql.Clob.setCharacterStream(long pos) though.

Sunitha.