Blob .getBytes position should start at 1

From: Emmanuel Bernard <emmanuel(at)hibernate(dot)org>
To: pgsql-patches(at)postgresql(dot)org
Subject: Blob .getBytes position should start at 1
Date: 2005-05-06 10:13:03
Message-ID: 427B432F.9060102@hibernate.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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

Patch attached

--
Emmanuel Bernard
http://www.hibernate.org
callto://emmanuelbernard

Attachment Content-Type Size
blobfix.patch text/plain 736 bytes

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message =?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?= 2005-05-06 12:36:33 Nameless IPC on POSIX systems
Previous Message Bruce Momjian 2005-05-06 03:43:00 Re: COPY CSV header line feature