pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc Herbert <Marc.Herbert@emicnetworks.com>
To: pgsql-jdbc@postgresql.org
Subject: JSR, under-specified Blob.setBytes(...) ?
Date: Tue, 16 Aug 2005 11:46:39 +0200
Message-ID: <20050816094639.GC30571@emicnetworks.com> (raw)
In-Reply-To: <20E72071-5575-4AF2-839F-65FB089968B7@fastcrypt.com>
References: <224f323405080913385a38ece0@mail.gmail.com>
	<Pine.BSO.4.56.0508091611090.19160@leary.csoft.net>
	<224f323405080914194be16ac3@mail.gmail.com>
	<Pine.BSO.4.56.0508091659460.32521@leary.csoft.net>
	<224f3234050809153725fb91c@mail.gmail.com>
	<Pine.BSO.4.56.0508091748200.13635@leary.csoft.net>
	<224f323405080916162cd2f75a@mail.gmail.com>
	<42F93CE3.1010003@opencloud.com>
	<Pine.BSO.4.56.0508091833550.2634@leary.csoft.net>
	<20E72071-5575-4AF2-839F-65FB089968B7@fastcrypt.com>

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 ?






Message-ID: <20050816094639.GC30571@emicnetworks.com>
Permalink:  ../20050816094639.GC30571@emicnetworks.com/
Also on:    postgresql.org/message-id/20050816094639.GC30571@emicnetworks.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: Marc.Herbert@emicnetworks.com
  Subject: Re: JSR, under-specified Blob.setBytes(...) ?
  In-Reply-To: <20050816094639.GC30571@emicnetworks.com>
  References: <224f323405080913385a38ece0@mail.gmail.com> <Pine.BSO.4.56.0508091611090.19160@leary.csoft.net> <224f323405080914194be16ac3@mail.gmail.com> <Pine.BSO.4.56.0508091659460.32521@leary.csoft.net> <224f3234050809153725fb91c@mail.gmail.com> <Pine.BSO.4.56.0508091748200.13635@leary.csoft.net> <224f323405080916162cd2f75a@mail.gmail.com> <42F93CE3.1010003@opencloud.com> <Pine.BSO.4.56.0508091833550.2634@leary.csoft.net> <20E72071-5575-4AF2-839F-65FB089968B7@fastcrypt.com> <20050816094639.GC30571@emicnetworks.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox