Re: Blob .getBytes position should start at 1

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Blob .getBytes position should start at 1
Дата
Msg-id Pine.BSO.4.56.0505081818590.8873@leary.csoft.net
обсуждение исходный текст
Ответ на Blob .getBytes position should start at 1  (Emmanuel Bernard <emmanuel@hibernate.org>)
Список 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

В списке pgsql-patches по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: lastval()
Следующее
От: "John Hansen"
Дата:
Сообщение: Re: lastval()