Re: jdbc1.AbstractJdbc1Statement.setBinaryStream bug and

From: Kris Jurka <books(at)ejurka(dot)com>
To: Martin Holz <holz(at)fiz-chemie(dot)de>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: jdbc1.AbstractJdbc1Statement.setBinaryStream bug and
Date: 2004-01-09 16:18:27
Message-ID: Pine.LNX.4.33.0401091115580.5608-100000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-jdbc

On Fri, 9 Jan 2004, Martin Holz wrote:

> On Friday 09 January 2004 09:46, Kris Jurka wrote:
>
> > The odd thing about the javadocs is that they say "The data will be
> > read from the stream as needed until end-of-file is reached." The
> > length parameter's comment is "the number of bytes in the stream."
>
> Don't know, which version of Javadoc you use.
>
> http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html#read(byte[],%20int,%20int)
> seems pretty clear to me.
>
> > This is strange because it seems to imply that the length argument
> > is just for informational purposes and should not be used to limit
> > the amount of data actually read from the stream.
>

I was referring to the documentation for setBinaryStream. You mentioned
that it should throw an Exception if it couldn't read "length" bytes from
the stream. I was commenting that our implementation might be wrong by
checking the length at all.

Kris Jurka

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Martin Holz 2004-01-09 17:07:53 Re: jdbc1.AbstractJdbc1Statement.setBinaryStream bug and
Previous Message Martin Holz 2004-01-09 11:18:31 Re: jdbc1.AbstractJdbc1Statement.setBinaryStream bug and

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2004-01-09 17:06:23 Re: PreparedStatement parameters and mutable objects
Previous Message Andrew Rawnsley 2004-01-09 15:33:41 Re: PreparedStatement parameters and mutable objects