From: | Marc Herbert <Marc(dot)Herbert(at)emicnetworks(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | JSR, under-specified Blob.setBytes(...) ? |
Date: | 2005-08-16 09:46:39 |
Message-ID: | 20050816094639.GC30571@emicnetworks.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Wed, Aug 10, 2005 at 08:46:25AM -0400, Dave Cramer wrote:
> >
> >Perhaps we can make some use of Dave's Sun contacts from his CTS work?
> >Even if not it wouldn't be a bad idea to get all of the questions
> >we've
> >got for Sun into one place. What else do we have other than the
> >getColumnDisplaySize() < 0 issue?
> >
> I'd be more than happy to, can we get all the questions in one place
> so that we can ask them all at once.
"Blob.setBytes(...)" methods are under-specified IMHO. But maybe it
was on purpose, to let the door open for each DBMS to have its own
and different interpretation adapted to its specific constraints.
The return value (number of bytes successfully written) seems to be an
indication of that; it looks like: "in corner cases, weird things can
happen, so you'd better check everything you wanted was written".
- When we don't write until the end of the Blob, do we keep the tail as is?
Yes looks like the most sensible answer, but a comment about this would not harm.
- On the other hand, what happens if the pre-existing Blob is too small,
is it extended?
- if it's extended, how are initialized bytes < pos ?
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Jowett | 2005-08-16 13:37:48 | Re: Missing functionality in ResultSetMetaData ? |
Previous Message | Albe Laurenz | 2005-08-16 07:11:01 | Re: Memory leak in 8.0 JDBC driver? |