Re: Blob .getBytes position should start at 1

From: Kris Jurka <books(at)ejurka(dot)com>
To: Emmanuel Bernard <emmanuel(at)hibernate(dot)org>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Blob .getBytes position should start at 1
Date: 2005-05-08 23:20:09
Message-ID: Pine.BSO.4.56.0505081818590.8873@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Fri, 6 May 2005, Emmanuel Bernard wrote:

> From the Javadoc of java.sql.Blob byte[] getBytes(long pos, int length)
> throws SQLException;
>
> * @param pos the ordinal position of the first byte in the
> * <code>BLOB</code> value to be extracted; the first byte is at
> * position 1
>
> pqsql driver assumes the position starts from 0
>

Indeed. I've put a fix in 7.4, 8.0, and HEAD branches.

Thanks.

Kris Jurka

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message John Hansen 2005-05-08 23:50:04 Re: lastval()
Previous Message Tom Lane 2005-05-08 22:36:49 Re: lastval()